]> git.saurik.com Git - wxWidgets.git/commitdiff
GTK2 Unicode build warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Jun 2003 20:03:34 +0000 (20:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Jun 2003 20:03:34 +0000 (20:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmltag.cpp

index 0b0b894f5b4accf3ca3be22b54df026013c2fe97..0d71df7cf7eeace1396cb6f064fe46db33624573 100644 (file)
@@ -131,7 +131,9 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
                         // see if it matches
                         int match_pos = 0;
                         while (pos < lng && match_pos < tag_len && src[pos] != '>' && src[pos] != '<') {
-                            if (wxToupper(src[pos]) == tagBuffer[match_pos]) {
+                            // cast to wxChar needed to suppress warning in
+                            // Unicode build
+                            if ((wxChar)wxToupper(src[pos]) == tagBuffer[match_pos]) {
                                 ++match_pos;
                             }  
                             else if (src[pos] == wxT(' ') || src[pos] == wxT('\n') ||