Mailing Lists: Apple Mailing Lists

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

XCode 2.0: what happened to long long?



Title: XCode 2.0: what happened to long long?
This code quit compiling when I went to XCode 2.0.  What's up with long long?

   typedef unsigned long long PathTrace;

    const PathTrace trace0 = 0;
    const PathTrace trace1 = 0x8000000000000000;

    long long myvar = 0x8000000000000000;

The errors:

/Users/ken/Programs/Cat & Mouse 2view + AI/TestFile.cpp:4: error: integer constant is too large for 'long' type
/Users/ken/Programs/Cat & Mouse 2view + AI/TestFile.cpp:6: error: integer constant is too large for 'long' type
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.