Proposed feature: Configure check for proper printf() format specifier for size_t variables

Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
Post Reply
cazfi
Elite
Posts: 3069
Joined: Tue Jan 29, 2013 6:54 pm

Proposed feature: Configure check for proper printf() format specifier for size_t variables

Post by cazfi »

osdn #43357: Targeted to freeciv-3.1: As a first step of replacing hacks around printing value of type size_t variables (including writing to a savegame), we should add configure check to detect what kind of format specifier is supported for that in the platform. Supposedly doing it that way instead of e.g. casting to the same strict type in all platforms would fix some rare corner-case bugs (such as having problems with savegames of over 4GB in size even on platforms that would otherwise support them)
Post Reply