• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Too long constant?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too long constant?


  • Subject: Re: Too long constant?
  • From: Jan Brittenson <email@hidden>
  • Date: Thu, 16 Dec 2004 14:57:05 -0800

Jan E. Schotsman wrote:

Hello list,

what is wrong with this:

#define kGL_MaxSignedLong64 ((SInt64)0x7FFFFFFFFFFFFFFF)

You're telling the compiler to convert a 32-bit literal with the value specified to a 64-bit int.
You need a 64-bit literal:


#define        kGL_MaxSignedLong64     (0x7FFFFFFFFFFFFFFFLL)

But the value is already defined for you:

#include <limits.h>
#define        kGL_MaxSignedLong64  (LLONG_MAX)

(see /usr/include/machine/limits.h for more constants)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Too long constant? (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: why
  • Next by Date: #pragma marks not recognized ?
  • Previous by thread: Re: Too long constant?
  • Next by thread: why
  • Index(es):
    • Date
    • Thread