From: Vadim Zeitlin Date: Thu, 22 Jan 2004 11:55:03 +0000 (+0000) Subject: suppress warnings about implicit float -> int conversions X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e9cece45b96f74bc6b03a90eff76adc271ccb8ea?ds=inline suppress warnings about implicit float -> int conversions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 8fdd67223a..7ae5fdf02a 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -201,17 +201,17 @@ void wxWindowCocoaScroller::ClientSizeToSize(int &width, int &height) hasHorizontalScroller: [m_cocoaNSScrollView hasHorizontalScroller] hasVerticalScroller: [m_cocoaNSScrollView hasVerticalScroller] borderType: [m_cocoaNSScrollView borderType]]; - width = frameSize.width; - height = frameSize.height; + width = (int)frameSize.width; + height = (int)frameSize.height; } void wxWindowCocoaScroller::DoGetClientSize(int *x, int *y) const { NSSize nssize = [m_cocoaNSScrollView contentSize]; if(x) - *x = nssize.width; + *x = (int)nssize.width; if(y) - *y = nssize.height; + *y = (int)nssize.height; } void wxWindowCocoaScroller::Cocoa_FrameChanged(void)