Re: Compiler bug?
Re: Compiler bug?
- Subject: Re: Compiler bug?
- From: Ken Tozier <email@hidden>
- Date: Fri, 12 May 2006 12:37:32 -0400
On May 12, 2006, at 12:14 PM, Scott Ribe wrote:
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]]];
Could be just a syntax subtlety with "?:" I wasn't aware of, but the
error stated the comparison (row[i] == NULL) was wrong, not the parts
after the "?". At least that's how I was interpreting it.
Ken
_______________________________________________
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