From 5b304314d9b9b479c85d384737667768f0071d36 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 3 Jul 2009 06:49:27 +0000 Subject: [PATCH] fixing warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/colordlgosx.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osx/carbon/colordlgosx.mm b/src/osx/carbon/colordlgosx.mm index f1093c4391..df8e2263a6 100644 --- a/src/osx/carbon/colordlgosx.mm +++ b/src/osx/carbon/colordlgosx.mm @@ -112,10 +112,10 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data) if(m_colourData.GetColour().IsOk()) [[NSColorPanel sharedColorPanel] setColor: - [NSColor colorWithCalibratedRed:m_colourData.GetColour().Red() / 255.0 - green:m_colourData.GetColour().Green() / 255.0 - blue:m_colourData.GetColour().Blue() / 255.0 - alpha:1.0] + [NSColor colorWithCalibratedRed:(CGFloat) (m_colourData.GetColour().Red() / 255.0) + green:(CGFloat) (m_colourData.GetColour().Green() / 255.0) + blue:(CGFloat) (m_colourData.GetColour().Blue() / 255.0) + alpha:(CGFloat) 1.0] ]; else [[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]]; -- 2.45.2