Warning with 64-Bit datatype

Eljay Love-Jensen eljay@adobe.com
Thu Jul 15 12:01:00 GMT 2004


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



More information about the Gcc-help mailing list