X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/363f7de02bf781db135d920408f0b8354386e45a..48fbb5214d7dd35f17d23e6e05631bc8ccc1c8a5:/src/cocoa/gauge.mm 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)