]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_sizer.cpp
Added buildbot slave configuration for brandt64.
[wxWidgets.git] / src / xrc / xh_sizer.cpp
index 6a7e591bb37562a17f7bc629de4d5196b52b1438..6fbe286e9650b6351bbbd83b04a227e52a7065d7 100644 (file)
@@ -419,7 +419,8 @@ void wxSizerXmlHandler::SetGrowables(wxFlexGridSizer* sizer,
             break;
         }
 
-        if ( (int)l >= nslots )
+        const int n = static_cast<int>(l);
+        if ( n >= nslots )
         {
             ReportParamError
             (
@@ -428,7 +429,7 @@ void wxSizerXmlHandler::SetGrowables(wxFlexGridSizer* sizer,
                 (
                     "invalid %s index %d: must be less than %d",
                     rows ? "row" : "column",
-                    l,
+                    n,
                     nslots
                 )
             );
@@ -438,9 +439,9 @@ void wxSizerXmlHandler::SetGrowables(wxFlexGridSizer* sizer,
         }
 
         if (rows)
-            sizer->AddGrowableRow(l);
+            sizer->AddGrowableRow(n);
         else
-            sizer->AddGrowableCol(l);
+            sizer->AddGrowableCol(n);
     }
 }