Re: Too long constant?
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