Update comment about %lu warnings.

This commit is contained in:
Philip.Hazel 2019-11-17 17:38:53 +00:00
parent 3c869816ac
commit 26fc863155
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ commented out the original, but kept it around just in case. */
#endif
/* VC and older compilers don't support %td or %zu, and even some that claim to
be C99 don't support it (hence DISABLE_PERCENT_ZT). */
be C99 don't support it (hence DISABLE_PERCENT_ZT). There are some non-C99
environments where %lu gives a warning with 32-bit pointers. As there doesn't
seem to be an easy way round this, just live with it (the cases are rare). */
#if defined(_MSC_VER) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L || defined(DISABLE_PERCENT_ZT)
#define PTR_FORM "lu"