From: Ryan Norton Date: Mon, 8 Nov 2004 00:34:51 +0000 (+0000) Subject: correct to int32 for range comparison X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/79c78d4284afd3ca726edf16763d248dc6253386 correct to int32 for range comparison git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 56e2894bd3..6f1ce18020 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -510,7 +510,7 @@ size_t wxMBConvUTF7::WC2MB(char *buf, const wchar_t len++; } #ifndef WC_UTF16 - else if (((wxUint16)cc) > 0xffff) + else if (((wxUint32)cc) > 0xffff) { // no surrogate pair generation (yet?) return (size_t)-1;