From f771a15d9e94f13e9cdb266f0a83382aa3faabd0 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 6 Apr 2014 19:28:50 +0000 Subject: [PATCH] cast to proper type to avoid warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }