Re: Warning with 64-Bit datatype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michael,

Try using <stdint.h> types instead:

#include <stdint.h>
int64_t hash;
hash = (hash << 1) & INT64_MAX;

--or--

#include <stdint.h>
int64_t hash;
hash = (hash << 1) & INT64_C(0x7FFFFFFFFFFFFFFF);

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux