]> git.saurik.com Git - wxWidgets.git/commitdiff
gcc signed/unsigned comparison warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:47:47 +0000 (21:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:47:47 +0000 (21:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/menu.cpp

index ba228442fa3f4b0cdad986bd2e63897bbad421df..2d3fa88a55101453f890433e4a03cf8a24a7f44f 100644 (file)
@@ -988,7 +988,7 @@ bool wxPopupMenuWindow::ProcessKeyDown(int key)
 
                     int idxAccel = item->GetAccelIndex();
                     if ( idxAccel != -1 &&
-                         wxTolower(item->GetLabel()[(size_t)idxAccel])
+                         (wxChar)wxTolower(item->GetLabel()[(size_t)idxAccel])
                             == chAccel )
                     {
                         // ok, found an item with this accel
@@ -2330,8 +2330,7 @@ int wxMenuBar::FindNextItemForAccel(int idxStart, int key, bool *unique) const
 
         int idxAccel = info.GetAccelIndex();
         if ( idxAccel != -1 &&
-             wxTolower(info.GetLabel()[(size_t)idxAccel])
-                == chAccel )
+             (wxChar)wxTolower(info.GetLabel()[(size_t)idxAccel]) == chAccel )
         {
             // ok, found an item with this accel
             if ( idxFound == -1 )