Fixed a bunch of compiler warnings (mingw compiler).

This commit is contained in:
lotodore committed 2007-09-04 23:37:32 +00:00
1 parent 232382e28f
commit 0900d3844b
9 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ utf8ToWchar(const char *str)
{
wchar_t *wstr = new wchar_t[reqLen];
wstr[0] = L'\0';
if (::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, len, wstr, reqLen) == reqLen)
if (::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, len, wstr, reqLen) == (int)reqLen)
retStr = wstr;
delete[] wstr;
}