sizeof(long)
Gokhan Kisacikoglu
kisa@centropolisfx.com
Tue Jul 2 18:28:00 GMT 2002
> 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
More information about the Gcc-help
mailing list