gcc signed/unsigned comparison warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 21:47:47 +00:00
parent e651143ca8
commit 4c1e8a6952

View 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 )