I don't know what the default compile settings are for 64-bit machines, so I could be wrong. However, I think the default is 32-bit only, regardless of environment. You have to set the compiler to also compile 64-bit binaries in the Info window of the project (right click on your project name in Xcode, then Get Info). Under Build -> Architectures (near the top), check what the setting is.

If it's 32 bit only, change it to 32/64 and report back.

But your app could be running on a 32 bit only machine, so 64 bit is not a bet to make if you want this program to work on unknown machines. Use -doubleValue to get at least 64 bits, guaranteed.

--Daniel


Dave DeLong wrote:
Am I missing something?

    NSInteger d = [@"43253234929732" integerValue];
    NSLog(@"%qi, %d", d, (d%2));

2009-03-07 17:36:32.620 TestApp[37000:10b] 6442450943, -1073743928

I'm expecting it to output "43253234929732, 0"...

I'm on a 2GHz Macbook Unibody, so I'm expecting that d is a 64-bit integer.

Any help would be appreciated.

Thanks,

Dave
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/applemaillist%40mm.danielrichman.com

This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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