Re: strange compiler warnings - can't get rid of them?
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