Hello,

I have a piece of C code that generates an unsigned long long from an sequence of unsigned char's.

When I do sizeof(unsigned long long) i get 8.
Afterwards I try to shift each unsigned char into its position along the destination unsigned long long variable, but I get a warning from the compiler that I am shifting beyond the type's capacity. That is not surprising since I am targeting 32 bit. Then I don't understand why the size of returns 8. Shouldn't it return 4 ?

I'm running Xcode 3.0 on Leopard.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to