This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: casting on 64/32-bit environment
- From: Holger Eitzenberger <holger at eitzenberger dot org>
- To: "Mitja Ursic" <mitja dot ursic at email dot si>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Oct 2007 21:49:36 +0200
- Subject: Re: casting on 64/32-bit environment
- References: <20071012130159.5F8FB8B750@www1.email.si>
"Mitja Ursic" <mitja.ursic@email.si> writes:
> Dose anyone have a reasonable explanation about that?
Hi,
make sure to use 'unsigned long' instead of 'unsigned int', as only the
first one will be 64bit in a 64bit environment, the latter still will
be 32bit.
/holger