From: Vadim Zeitlin Date: Thu, 22 Jan 2004 11:52:34 +0000 (+0000) Subject: suppress warnings about implicit double -> int conversions X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2108cc974ff9810b3d3a02dfbf3943c05e22a4c7?ds=inline suppress warnings about implicit double -> int conversions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/gauge.mm b/src/cocoa/gauge.mm index 977de167ad..028064b74a 100644 --- a/src/cocoa/gauge.mm +++ b/src/cocoa/gauge.mm @@ -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)