diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 22bb1ed118..a164fdea47 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -2531,7 +2531,7 @@ Rect wxMacGetBoundsForControl( wxWindowMac* window , const wxPoint& pos , const int x, y, w, h ; window->MacGetBoundsForControl( pos , size , x , y, w, h , adjustForOrigin ) ; - Rect bounds = { y, x, y + h, x + w }; + Rect bounds = { static_cast(y), static_cast(x), static_cast(y + h), static_cast(x + w) }; return bounds ; }