From 66fbdce9ae2c508ec8b5572d123cd2a0e90a28eb Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 27 Nov 2024 11:28:20 -0500 Subject: [PATCH] Fix #1986 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index bfad4fffeb..374400515e 100644 --- a/httplib.h +++ b/httplib.h @@ -2271,7 +2271,7 @@ inline std::wstring u8string_to_wstring(const char *s) { wlen = ::MultiByteToWideChar( CP_UTF8, 0, s, len, const_cast(reinterpret_cast(ws.data())), wlen); - if (wlen != ws.size()) { ws.clear(); } + if (wlen != static_cast(ws.size())) { ws.clear(); } } return ws; }