X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fb18bf45bcf391a8eb973886072dc67893e9bbe..c9eee7f035ebc6b5c044475d508b018ae9fb5bc2:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index a2218c3933..5db2c30222 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1324,10 +1324,12 @@ void wxFlexGridSizer::AdjustForFlexDirection() wxArrayInt& array = m_flexDirection == wxVERTICAL ? m_colWidths : m_rowHeights; - const int count = array.GetCount(); + const size_t count = array.GetCount(); // find the largest value in this array - int n, largest = 0; + size_t n; + int largest = 0; + for ( n = 0; n < count; ++n ) { if ( array[n] > largest )