X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59059feb4055ba3831c1a9f100cd5a2c23e9e94f..1c7da10ebff58f95aa6eaad1a0bf8cd39a516b54:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index f7fac21241..0eae6299c9 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1409,12 +1409,12 @@ const wxCharBuffer wxString::ToAscii() const wxCharBuffer buffer(length()); - wxInt8 *dest = buffer.data(); + char *dest = buffer.data(); const wchar_t *pwc = c_str(); for ( ;; ) { - *dest++ = (wxInt8)(*pwc > SCHAR_MAX ? wxT('_') : *pwc); + *dest++ = (char)(*pwc > SCHAR_MAX ? wxT('_') : *pwc); // the output string can't have embedded NULs anyhow, so we can safely // stop at first of them even if we do have any