One format string in MapIO.c calls its argument "%u", but passes a size_t. On 64-bit platforms, a size_t can be 64 bits, but the format specifier says to look at only 32 bits of the argument. On a big-endian platform, this means that "0" will always be printed. The attached patch adds the "z" modifier to tell printf the correct size.
Log in to post a comment.