• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Missing braces? I don't see where
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Missing braces? I don't see where
      • From: Kevin Brock <email@hidden>
References: 
 >Missing braces? I don't see where (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Missing braces? I don't see where
  • Next by Date: Re: Missing braces? I don't see where
  • Previous by thread: Re: Missing braces? I don't see where
  • Next by thread: Re: Missing braces? I don't see where
  • Index(es):
    • Date
    • Thread