diff options
| author | 2015-06-27 19:28:58 -0700 | |
|---|---|---|
| committer | 2015-07-19 03:59:46 -0700 | |
| commit | 6e9a6ca6bf7cc32636f08772767890eba7aab1c6 (patch) | |
| tree | 100757380359217adc37d788845027f0d371977c /src/common/string_util.cpp | |
| parent | Citra_QT : Fix Conversion Warnings (diff) | |
| download | yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.gz yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.tar.xz yuzu-6e9a6ca6bf7cc32636f08772767890eba7aab1c6.zip | |
Common : Fix Conversion Warnings
Diffstat (limited to 'src/common/string_util.cpp')
| -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) | |||
| 313 | std::string output; | 313 | std::string output; |
| 314 | output.resize(size); | 314 | output.resize(size); |
| 315 | 315 | ||
| 316 | if (size == 0 || size != WideCharToMultiByte(CP_UTF8, 0, input.data(), input.size(), &output[0], output.size(), nullptr, nullptr)) | 316 | if (size == 0 || size != WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), &output[0], static_cast<int>(output.size()), nullptr, nullptr)) |
| 317 | output.clear(); | 317 | output.clear(); |
| 318 | 318 | ||
| 319 | return output; | 319 | return output; |