Re: Problem parsing file in 64 bit build.
Re: Problem parsing file in 64 bit build.
- Subject: Re: Problem parsing file in 64 bit build.
- From: Quincey Morris <email@hidden>
- Date: Sun, 06 May 2012 23:30:59 -0700
On May 6, 2012, at 22:51 , Graham Cox wrote:
> Could this be caused by the 64 bit compiler padding out my structures in a different way for 64-bit builds?
Yes, I believe in 64-bit builds 8-byte data types are 8-byte aligned, while they're only 4-bit aligned in 32-bit builds -- or something like that.
> If so is there a way to tell it not to for these types?
Try this:
typedef struct {
...
} __attribute__ ((packed)) MyStruct;
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden