From 9d3554339a8fff5c2ca39584a5210e7f2dc8eacd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 8 Oct 2006 20:28:05 +0000 Subject: [PATCH] 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 --- src/richtext/richtextxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.0