Re: Missing braces? I don't see where
Re: Missing braces? I don't see where
- Subject: Re: Missing braces? I don't see where
- From: Chris Suter <email@hidden>
- Date: Wed, 28 Oct 2009 09:27:52 +1100
Hi Steve,
On Wed, Oct 28, 2009 at 8:46 AM, Steve Mills
<email@hidden> wrote:
COLORDATA backgroundColor = { kRGBSpace, false, {0xFFFF, 0xFFFF, 0xFFFF} };
The code previously didn't have the brackets around the three 0xffff's, so I added them thinking it would fix the warning. It's still complains.
You want:
COLORDATA backgroundColor = { kRGBSpace, false, { { 0xFFFF, 0xFFFF, 0xFFFF } } };
because of the union.
Kind regards,
Chris
_______________________________________________
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