]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
Miscellaneous compilation and warning fixes.
[wxWidgets.git] / src / univ / menu.cpp
index b6b0189e85cc2ee828c477762717a48cbc48cab5..962d1549ed53af5b5509af1fdec3f3e21caac1ec 100644 (file)
@@ -978,7 +978,7 @@ bool wxPopupMenuWindow::ProcessKeyDown(int key)
                 bool notUnique = false;
 
                 // translate everything to lower case before comparing
-                wxChar chAccel = wxTolower(key);
+                wxChar chAccel = (wxChar)wxTolower(key);
 
                 // loop through all items searching for the item with this
                 // accel
@@ -2304,7 +2304,7 @@ int wxMenuBar::FindNextItemForAccel(int idxStart, int key, bool *unique) const
         *unique = true;
 
     // translate everything to lower case before comparing
-    wxChar chAccel = wxTolower(key);
+    wxChar chAccel = (wxChar)wxTolower(key);
 
     // the index of the item with this accel
     int idxFound = -1;