This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Warning with 64-Bit datatype
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: pfeiffer at swac dot de, gcc-help at gcc dot gnu dot org
- Date: Thu, 15 Jul 2004 07:01:52 -0500
- Subject: Re: Warning with 64-Bit datatype
- References: <10407141336.AA23718@vlsi1.ultra.nyu.edu><40F53DED.8060808@gnat.com> <cd587p$6q2$1@sea.gmane.org><opsa56jlgj68q9g4@swexch.swac.de>
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