]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes for harmless mingw32 warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Sep 2004 18:50:48 +0000 (18:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Sep 2004 18:50:48 +0000 (18:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/config.cpp
src/msw/window.cpp

index 2e8372db9366eb0ae3cbfdee29a6ae899d9e60ff..7e4173e4e237006b1c536fb82570a5696b18a554 100644 (file)
@@ -352,7 +352,7 @@ wxString wxExpandEnvVars(const wxString& str)
 
           // check the closing bracket
           if ( bracket != Bracket_None ) {
 
           // check the closing bracket
           if ( bracket != Bracket_None ) {
-            if ( m == str.Len() || str[m] != (char)bracket ) {
+            if ( m == str.Len() || str[m] != (wxChar)bracket ) {
               // under MSW it's common to have '%' characters in the registry
               // and it's annoying to have warnings about them each time, so
               // ignroe them silently if they are not used for env vars
               // under MSW it's common to have '%' characters in the registry
               // and it's annoying to have warnings about them each time, so
               // ignroe them silently if they are not used for env vars
index f935180fc5bb139413db3d59bbf9202ab11930b7..a68f7b7dfdf2e53430ddd42792ba7ce6cb105619 100644 (file)
@@ -4720,7 +4720,7 @@ int wxWindowMSW::HandleMenuChar(int chAccel, WXLPARAM lParam)
                         // FIXME-UNICODE: this comparison doesn't risk to work
                         // for non ASCII accelerator characters I'm afraid, but
                         // what can we do?
                         // FIXME-UNICODE: this comparison doesn't risk to work
                         // for non ASCII accelerator characters I'm afraid, but
                         // what can we do?
-                        if ( wxToupper(*p) == chAccel )
+                        if ( wxToupper(*p) == (wchar_t)chAccel )
                         {
                             return i;
                         }
                         {
                             return i;
                         }