From fe07660f40c3f29bdda84f0c637e6b7dc4734ee4 Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 27 Nov 2024 12:18:35 -0500 Subject: [PATCH] Fix #1986 (#1988) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index c671b8dbe0..b4f89d6183 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; }