Fix warnings on MinGW.

This commit is contained in:
Victor Zverovich
2014-07-09 08:39:01 -07:00
parent e3a44c11f6
commit 8321d0ecf9
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ fmt::internal::UTF8ToUTF16::UTF8ToUTF16(fmt::StringRef s) {
fmt::internal::UTF16ToUTF8::UTF16ToUTF8(fmt::WStringRef s) {
if (int error_code = Convert(s)) {
throw WindowsError(GetLastError(),
throw WindowsError(error_code,
"cannot convert string from UTF-16 to UTF-8");
}
}