From: Vadim Zeitlin Date: Sun, 8 Oct 2006 20:28:05 +0000 (+0000) Subject: testing whether signed char is greater than 127 is always false, cast it to unsigned... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9d3554339a8fff5c2ca39584a5210e7f2dc8eacd testing whether signed char is greater than 127 is always false, cast it to unsigned first git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextxml.cpp b/src/richtext/richtextxml.cpp index 1df105a391..e7f20cd917 100644 --- a/src/richtext/richtextxml.cpp +++ b/src/richtext/richtextxml.cpp @@ -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);