Ignore:
Timestamp:
2006-09-24T06:17:38+02:00 (8 years ago)
Author:
moo
Message:

kill 64bit warning when self test is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/main.m4

    r148 r193  
    2222    IFCALC(` 
    2323        IFASSERT(` 
    24             xc_stack_push(&processor->allocsizes, (void*)(SIZE)); 
    25             xc_stack_push(&processor->allocsizes, (void*)(__LINE__)); 
     24            xc_stack_push(&processor->allocsizes, (void *) (long) (SIZE)); 
     25            xc_stack_push(&processor->allocsizes, (void *) (long) (__LINE__)); 
    2626        ') 
    2727        processor->size = (size_t) ALIGN(processor->size); 
     
    3434            } 
    3535            else { 
    36                 int expect = (int)xc_stack_pop(&processor->allocsizes); 
    37                 int atline = (int)xc_stack_pop(&processor->allocsizes); 
    38                 int real = SIZE; 
     36                unsigned long expect = (unsigned long) xc_stack_pop(&processor->allocsizes); 
     37                unsigned long atline = (unsigned long) xc_stack_pop(&processor->allocsizes); 
     38                unsigned long real = SIZE; 
    3939                if (expect != real) { 
    40                     fprintf(stderr, "mismatch `$@' at line %d(was %d): real %d - expect %d = %d\n", __LINE__, atline, real, expect, real - expect); 
     40                    fprintf(stderr, "mismatch `$@' at line %d(was %d): real %lu - expect %lu = %lu\n", __LINE__, atline, real, expect, real - expect); 
    4141                } 
    4242            } 
Note: See TracChangeset for help on using the changeset viewer.