diff options
author | zawata <zawataza@gmail.com> | 2015-06-28 04:28:58 +0200 |
---|---|---|
committer | zawata <zawataza@gmail.com> | 2015-07-19 12:59:46 +0200 |
commit | 6e9a6ca6bf7cc32636f08772767890eba7aab1c6 (patch) | |
tree | 100757380359217adc37d788845027f0d371977c | |
parent | Citra_QT : Fix Conversion Warnings (diff) | |
download | yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.gz yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.bz2 yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.lz yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.xz yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.zst yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.zip |
-rw-r--r-- | src/common/string_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 2e80809ab..b2f7f7b1d 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -313,7 +313,7 @@ static std::string UTF16ToUTF8(const std::wstring& input) std::string output; output.resize(size); - if (size == 0 || size != WideCharToMultiByte(CP_UTF8, 0, input.data(), input.size(), &output[0], output.size(), nullptr, nullptr)) + if (size == 0 || size != WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), &output[0], static_cast<int>(output.size()), nullptr, nullptr)) output.clear(); return output; |