int64_t is long on x86_64, and not always equivalent to long long.
authorSascha Wildner <saw@online.de>
Thu, 29 Nov 2012 20:57:05 +0000 (21:57 +0100)
committerSascha Wildner <saw@online.de>
Thu, 29 Nov 2012 20:57:05 +0000 (21:57 +0100)
commit46163a31d70f54ec0d6ca79f16c30b5a9dd1959d
treeeb986669dd06d138ba398c00e4be5633e03ba8b8
parentcf5a2d8858313285c4fbe3ea5d711eb1b6f922a3
int64_t is long on x86_64, and not always equivalent to long long.

Similarly, uint64_t is unsigned long.

For their min/max value definitions, change LL/ULL suffixes to L/UL.

The bug report has some C++ sample code that show issues resulting
from treating them as long long.

Reported-by: David Shao <davshao@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2461>
sys/cpu/x86_64/include/int_limits.h