Re: Compiler bug?
Re: Compiler bug?
- Subject: Re: Compiler bug?
- From: Scott Ribe <email@hidden>
- Date: Fri, 12 May 2006 10:14:35 -0600
- Thread-topic: Compiler bug?
> Does that seem like a bug to anyone else?
No. Perhaps a poorly worded warning. But your ?: expression evaluates to
different types, depending on which side is used.
[fieldArray addObject: (row[i] == NULL) ? (NSNumber *) [NSNull null] :
[NSNumber
numberWithLongLong: [value intValue]]];
or:
[fieldArray addObject: (row[i] == NULL) ? (id) [NSNull null] : (id)
[NSNumber
numberWithLongLong: [value intValue]]];
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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