This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: sizeof(long)
- From: Gokhan Kisacikoglu <kisa at centropolisfx dot com>
- To: Jason Foat <jfoat at seasoar2 dot ucsd dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 02 Jul 2002 18:26:24 -0700
- Subject: Re: sizeof(long)
- Organization: Centropolis Effects, LLC
- References: <200207030120.AA02292@seasoar2.ucsd.edu>
- Reply-to: kisa at centropolisfx dot com
> 1) Does this seem right? Shouldn't longs have more bytes?
>
> 2) Is this a product of some compile option or something?
>
> 3) How can I fix this? (I need an int with more oomph!)
>
This is correct for the platform you are asking, it should be so for all
of the 32bit systems (as far as I know). You can use "long long", if you
want to use 8 byte integers. However it is not quite portable as far as
I know...
good luck,
-kisa