X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2fac41ad81610c6c4cffac5a1a5a5c92ea8b906..639e001d875797ec81217f6a9b8cd93285b02e80:/src/common/wxchar.cpp diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 67ce2f84d8..8f806d62fa 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -741,7 +741,7 @@ bool wxPrintfConvSpec::LoadArg(wxPrintfArg *p, va_list &argptr) break; case wxPAT_CHAR: - p->pad_char = va_arg(argptr, int); // char is promoted to int when passed through '...' + p->pad_char = (char)va_arg(argptr, int); // char is promoted to int when passed through '...' break; case wxPAT_WCHAR: p->pad_wchar = (wchar_t)va_arg(argptr, int); // char is promoted to int when passed through '...'