X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..86fdd27b451ec92f4573f125fec73c44421ee744:/src/msw/menu.cpp?ds=sidebyside diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 7d926f6ee2..66cf7c98ef 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -179,13 +179,13 @@ void wxMenu::Append(wxMenuItem *pItem) else { if ( current.Len() == 1 ) { // it's a letter - keyCode = wxToupper(current[0]); + keyCode = wxToupper(current[0U]); } else { // it should be a function key - if ( current[0] == 'f' && isdigit(current[1]) && + if ( current[0U] == 'f' && isdigit(current[1U]) && (current.Len() == 2 || - (current.Len() == 3 && isdigit(current[2]))) ) { + (current.Len() == 3 && isdigit(current[2U]))) ) { int n; sscanf(current.c_str() + 1, "%d", &n);