summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-02-14 21:50:26 +0100
committerbunnei <bunneidev@gmail.com>2015-02-14 21:50:26 +0100
commit12181c8a64678e73281e893b6ba108d5a125c1aa (patch)
tree831883189eb5c846b619c20e22e1015c5c140c63 /src/common
parentMerge pull request #572 from lioncash/prototypes (diff)
parentBuild: Fixed some warnings (diff)
downloadyuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar.gz
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar.bz2
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar.lz
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar.xz
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.tar.zst
yuzu-12181c8a64678e73281e893b6ba108d5a125c1aa.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/string_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index b3b772bd9..3264dd51a 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -426,7 +426,7 @@ std::u16string UTF8ToUTF16(const std::string& input)
static std::string UTF16ToUTF8(const std::wstring& input)
{
- auto const size = WideCharToMultiByte(CP_UTF8, 0, input.data(), input.size(), nullptr, 0, nullptr, nullptr);
+ auto const size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), nullptr, 0, nullptr, nullptr);
std::string output;
output.resize(size);
@@ -439,12 +439,12 @@ static std::string UTF16ToUTF8(const std::wstring& input)
static std::wstring CPToUTF16(u32 code_page, const std::string& input)
{
- auto const size = MultiByteToWideChar(code_page, 0, input.data(), input.size(), nullptr, 0);
+ auto const size = MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
std::wstring output;
output.resize(size);
- if (size == 0 || size != MultiByteToWideChar(code_page, 0, input.data(), input.size(), &output[0], output.size()))
+ if (size == 0 || size != MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), &output[0], static_cast<int>(output.size())))
output.clear();
return output;