Re: NSNumber's integer approximation of Positive Infinity
Re: NSNumber's integer approximation of Positive Infinity
- Subject: Re: NSNumber's integer approximation of Positive Infinity
- From: John Stiles <email@hidden>
- Date: Wed, 24 May 2006 16:08:43 -0700
This doesn't sound like a good thing to rely on.
I can certainly see the value of ((int)INFINITY) being architecture-
dependent. I suspect the C standard leaves it undefined (not sure
though).
On May 24, 2006, at 3:47 PM, Gabriele de Simone wrote:
I just noticed that the following invocation:
[((NSNumber *) kCFNumberPositiveInfinity) intValue]
returns 0x7FFFFFF on PowerPC (good) and 0x8000000 on Intel (bad).
One would expect that the NSNumber approximation of positive
infinity would return identical values on both architectures. Is
this a bug, or am I missing some piece of information?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden