[AD] asmdef.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Evert, do you remember why you changed the type of the `value' field in src/i386/asmdef.c from int to uintptr_t? The problem is that in the line:

   fprintf(f, "#define %s %d\n", p->name, p->value);

now causes this warning on x86_64:

   ./src/i386/asmdef.c:279: warning: int format, different type arg (arg 4)

If we change the %d to a %ld then the warning will show up on 32-bit machines.

Attached is a patch to revert the uintptr_t to a plain int.

Peter

Attachment: asmdef-offset.diff.gz
Description: application/gunzip



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/