• 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: strange compiler warnings - can't get rid of them?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange compiler warnings - can't get rid of them?


  • Subject: Re: strange compiler warnings - can't get rid of them?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 27 Nov 2007 13:09:27 -0500
  • Organization: Rogue Research

On 11/27/07 6:39 PM, Jean-Daniel Dupas said:

>Maybe doing something like this will be ok for both cases:
>
>NSSize iconSize = {iconSize.width * (CGFloat)0.75, iconSize.height *
>(CGFloat)0.75};

This casting to CGFloat is the only way I've found to have code work
well with the -Wshorten-64-to-32 warning.  It's kind of annoying that
NSSize can be both float and double.  It makes adding the 'f' suffix
unhelpful.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

 _______________________________________________
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

References: 
 >strange compiler warnings - can't get rid of them? (From: Jens Miltner <email@hidden>)
 >Re: strange compiler warnings - can't get rid of them? (From: "Clark Cox" <email@hidden>)
 >Re: strange compiler warnings - can't get rid of them? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: strange compiler warnings - can't get rid of them?
  • Next by Date: Re: strange compiler warnings - can't get rid of them?
  • Previous by thread: Re: strange compiler warnings - can't get rid of them?
  • Next by thread: Re: strange compiler warnings - can't get rid of them?
  • Index(es):
    • Date
    • Thread