]> git.saurik.com Git - wxWidgets.git/commitdiff
testing whether signed char is greater than 127 is always false, cast it to unsigned...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 20:28:05 +0000 (20:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 20:28:05 +0000 (20:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextxml.cpp

index 1df105a3913ffa410d5deef555253e5bcc8939be..e7f20cd91742db3218b4801713703a3e85b0ccf5 100644 (file)
@@ -361,7 +361,7 @@ static void OutputStringEnt(wxOutputStream& stream, const wxString& str,
             }
             last = i + 1;
         }
-        else if (c > 127)
+        else if ((unsigned wxChar)c > 127)
         {
             OutputString(stream, str.Mid(last, i - last), convMem, convFile);