diff --git a/src/osx/cocoa/toolbar.mm b/src/osx/cocoa/toolbar.mm index 8c1525df00..f1233ce809 100644 --- a/src/osx/cocoa/toolbar.mm +++ b/src/osx/cocoa/toolbar.mm @@ -887,7 +887,7 @@ void wxToolBar::DoLayout() // find the maximum tool width and height // and the number of stretchable items - unsigned numStretchableSpaces = 0; + int numStretchableSpaces = 0; wxToolBarTool *tool; wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst(); while ( node )