aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-10-02 16:41:52 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-10-02 16:41:52 -0700
commitf72cf87ab21c1b6966c09ec3e7fd5d7f9052ea0a (patch)
treecaa7d2c49b69c0d90d1bd95e823d83857eb4a431
parentca692e52cee55da2f9d65d66e5f3997f3a335743 (diff)
downloadvcpkg-f72cf87ab21c1b6966c09ec3e7fd5d7f9052ea0a.tar.gz
vcpkg-f72cf87ab21c1b6966c09ec3e7fd5d7f9052ea0a.zip
Change size_t to int (which is the actual return type)
-rw-r--r--toolsrc/src/vcpkg_Strings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg_Strings.cpp b/toolsrc/src/vcpkg_Strings.cpp
index 964ed73d0..07147862f 100644
--- a/toolsrc/src/vcpkg_Strings.cpp
+++ b/toolsrc/src/vcpkg_Strings.cpp
@@ -73,7 +73,7 @@ namespace vcpkg::Strings
{
std::wstring to_utf16(const CStringView s)
{
- const size_t size = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, nullptr, 0);
+ const int size = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, nullptr, 0);
std::wstring output;
output.resize(size - 1);
MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, output.data(), size - 1);
@@ -82,7 +82,7 @@ namespace vcpkg::Strings
std::string to_utf8(const CWStringView w)
{
- const size_t size = WideCharToMultiByte(CP_UTF8, 0, w.c_str(), -1, nullptr, 0, nullptr, nullptr);
+ const int size = WideCharToMultiByte(CP_UTF8, 0, w.c_str(), -1, nullptr, 0, nullptr, nullptr);
std::string output;
output.resize(size - 1);
WideCharToMultiByte(CP_UTF8, 0, w.c_str(), -1, output.data(), size - 1, nullptr, nullptr);