cast fix, workaround for pickeir compilers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-11-05 16:33:47 +00:00
parent 59059feb40
commit 6e394fc623
2 changed files with 4 additions and 8 deletions

View File

@@ -473,12 +473,8 @@ size_t wxMBConvUTF7::WC2MB(char *buf, const wchar_t
len++;
}
#ifndef WC_UTF16
#ifdef __VMS
else if (cc > 0xffff)
#else
else if (cc > ((const wchar_t)0xffff))
#endif
{
else if (((wxUint16)cc) > 0xffff)
{
// no surrogate pair generation (yet?)
return (size_t)-1;
}