commit | f6d40d5bb85448810ec5749b40403db4d269583f | [log] [tgz] |
---|---|---|
author | Guy Harris <guy@alum.mit.edu> | Thu Jun 07 22:12:28 2012 -0700 |
committer | Guy Harris <guy@alum.mit.edu> | Thu Jun 07 22:12:28 2012 -0700 |
tree | 47a9a1ff5088367b5a486b57e0e991e1e5d1c536 | |
parent | 4e93f682e3b3f404aa5e1b579a9e81c6c523ceff [diff] |
Fix printing of 64-bit quantities. Do *NOT* assume that "%l[doxu]x" - or "%ll[doxu]" - is the way to print a 64-bit quantity; on UN*X, it might be a "long" or a "long long", depending on whether you're on a 32-bit or 64-bit platform and, on Windows with MSVC++, it's not a long (even in 64-bit mode) and doesn't use "%ll[doxu]", either. Instead, use PRI[doxu]64; that's what C99 defines, and what we define ourselves if the C environment doesn't define it.