Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual table problems - Solved, but new problem arisen



On Sunday, August 17, 2003, at 08:30 AM, Nicholas Shanks wrote:

Turned out to be that CodeWarrior used chars for enums and gcc used a long. The initaliser was putting 0x08000000 into the value instead of 0x00000008, and was consequently out of bounds on the array. It looks like I have a large number of enums like this being both read and written to deal with :/

FYI... CW creates enums that are as small as they can be to contain all the values (unless you have Force 4 byte enums on in the project settings). gcc always creates 4 byte enums.

CW uses one byte for bool types. gcc uses four bytes for bools.

CW uses different rules for "power" align, especially concerning doubles in structs as compared to gcc.

Are you a registered developer with Apple's developer programs (select or premier?)

Bryan
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Virtual table problems - Solved, but new problem arisen (From: Nicholas Shanks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.