Re: memcmp.c needs intptr_t

2009-02-01 Thread Bruno Haible
Hello Ozkan, > Hello: Found this while compiling gdb for win64: memcmp.c > casts long to pointers but sizeof(long) == 4 for win64. A patch > is attached here. Thanks for reporting this. Indeed there are two things wrong in gnulib's memcmp.c: - The assumption that sizeof (long) >= sizeof (void

memcmp.c needs intptr_t

2009-02-01 Thread O.Sezer
Hello: Found this while compiling gdb for win64: memcmp.c casts long to pointers but sizeof(long) == 4 for win64. A patch is attached here. (if it gets applied, does it automatically go into gdb and/or any other users?) Regards, Ozkan Sezer PS: There are a few similar errors of long type in li