X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4115960d4b88375610bd0a8990a5a522c9fbe003..c54de5ae9d5ca61175599a2f30a49d14ae1108f3:/src/common/uri.cpp diff --git a/src/common/uri.cpp b/src/common/uri.cpp index 30a0004bc1..c195d13729 100644 --- a/src/common/uri.cpp +++ b/src/common/uri.cpp @@ -113,7 +113,7 @@ wxChar wxURI::TranslateEscape(const wxChar* s) { wxASSERT_MSG( IsHex(s[0]) && IsHex(s[1]), wxT("Invalid escape sequence!")); - return (wxChar)( CharToHex(s[0]) << 4 ) | CharToHex(s[1]); + return wx_truncate_cast(wxChar, (CharToHex(s[0]) << 4 ) | CharToHex(s[1])); } wxString wxURI::Unescape(const wxString& uri)