From 5f21ddb6f7eec31cc98d99318ce9ca82ce65d554 Mon Sep 17 00:00:00 2001 From: DH Date: Thu, 25 Dec 2025 22:09:27 +0300 Subject: [PATCH] rx: StrUtil: fix win32 implementation --- rx/src/StrUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rx/src/StrUtil.cpp b/rx/src/StrUtil.cpp index d601934ee..136f8a3f9 100644 --- a/rx/src/StrUtil.cpp +++ b/rx/src/StrUtil.cpp @@ -21,7 +21,7 @@ std::wstring rx::toWchar(std::string_view src) { #ifdef _WIN32 std::wstring wchar_string; - const int size = ::narrow(src.size()); + const int size = static_cast(src.size()); const auto tmp_size = MultiByteToWideChar(CP_UTF8, 0, src.data(), size, nullptr, 0); wchar_string.resize(tmp_size); @@ -37,7 +37,7 @@ std::wstring rx::toWchar(std::string_view src) { std::string rx::toUtf8(std::wstring_view src) { #ifdef _WIN32 std::string utf8_string; - const int size = ::narrow(src.size()); + const int size = static_cast(src.size()); const auto tmp_size = WideCharToMultiByte(CP_UTF8, 0, src.data(), size, nullptr, 0, nullptr, nullptr); utf8_string.resize(tmp_size);