X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0519aac9dbd362dd3e20611eba6a6e979e9c43a5..38b36b4c679d20adb70d1695f3be9b801fdbf556:/tests/regex/regextest.cpp diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index e5a0c89f3d..8988557568 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -323,7 +323,7 @@ wxString RegExTestCase::quote(const wxString& arg) wxString str; for (size_t i = 0; i < arg.length(); i++) { - wxUChar ch = arg[i]; + wxUChar ch = (wxChar)arg[i]; const wxChar *p = wxStrchr(needEscape, ch); if (p) @@ -331,7 +331,7 @@ wxString RegExTestCase::quote(const wxString& arg) else if (wxIscntrl(ch)) str += wxString::Format(_T("\\%03o"), ch); else - str += ch; + str += (wxChar)ch; } return str.length() == arg.length() && str.find(' ') == wxString::npos ?