]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress warnings about implicit double -> int conversions
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Jan 2004 11:52:34 +0000 (11:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Jan 2004 11:52:34 +0000 (11:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/gauge.mm

index 977de167adb76c63d295e66c3fe4c58355bfedb4..028064b74a954506aa03fc1b3064d5b866dbf01e 100644 (file)
@@ -49,7 +49,7 @@ wxGauge::~wxGauge()
 
 int wxGauge::GetValue() const
 {
-    return [(NSProgressIndicator*)m_cocoaNSView doubleValue];
+    return (int)[(NSProgressIndicator*)m_cocoaNSView doubleValue];
 }
 
 void wxGauge::SetValue(int value)
@@ -59,7 +59,7 @@ void wxGauge::SetValue(int value)
 
 int wxGauge::GetRange() const
 {
-    return [(NSProgressIndicator*)m_cocoaNSView maxValue];
+    return (int)[(NSProgressIndicator*)m_cocoaNSView maxValue];
 }
 
 void wxGauge::SetRange(int maxValue)