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]

float, int length varies inside struct ???




Hi,

I have a structure with a mixture of
shorts, int and floats. What really bugs
me is that floats and ints sometimes
are 6 byte and sometimes 4 byte, which
they are supposed to be. I've had
this problem before, and then I just
divided the structures into structs
with float and structs with shorts.
But the structure I'am using now is too
large. BTW I use Redhat 6.0 on an Intel proc.
Can anyone help me ?

-Tommy


Sent via Deja.com http://www.deja.com/
Before you buy.


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