diff --git a/src/common/string.cpp b/src/common/string.cpp index 6b3e8bacbc..cc2e759631 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1183,7 +1183,7 @@ wxString wxString::FromAscii(const char *ascii, size_t len) wxASSERT_MSG( c < 0x80, wxT("Non-ASCII value passed to FromAscii().") ); - *dest++ = (wchar_t)c; + *dest++ = static_cast(c); } }