This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sizeof(long)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]