From 9f104fbfce353d62694ea0b191b186e5467dc916 Mon Sep 17 00:00:00 2001 From: Brian Macy Date: Wed, 19 May 1999 17:40:01 +0000 Subject: [PATCH] Changed [] parameters to be unsigned. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.45.2