X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/363f7de02bf781db135d920408f0b8354386e45a..8f8e45c4d941c9b17a77ec71595e3d7a39058234:/src/cocoa/gauge.mm?ds=sidebyside 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)