Changeset 193 in svn for trunk/processor/main.m4
- Timestamp:
- 2006-09-24T04:17:38Z (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/main.m4
r148 r193 22 22 IFCALC(` 23 23 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__)); 26 26 ') 27 27 processor->size = (size_t) ALIGN(processor->size); … … 34 34 } 35 35 else { 36 int expect = (int)xc_stack_pop(&processor->allocsizes);37 int atline = (int)xc_stack_pop(&processor->allocsizes);38 intreal = 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; 39 39 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); 41 41 } 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.