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: email@hidden (Stefan Haller)
- Date: Tue, 27 Nov 2007 18:45:15 +0100
- Organization: Ableton
Jens Miltner <email@hidden> wrote:
> NSSize warningIconSize = NSMakeSize(iconSize.width * 0.75,
> iconSize.height * 0.75);
iconSize.width is a float, but 0.75 is a double; multiplying them yields
a double. The warning says that you are passing this double to a
function that takes a float, which loses precision.
To avoid the warning, use 0.75f instead of 0.75.
--
Stefan Haller
Ableton
http://www.ableton.com/
_______________________________________________
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