Skip to content

Commit 66fbdce

Browse files
committed
Fix #1986
1 parent 1a7a7ed commit 66fbdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ inline std::wstring u8string_to_wstring(const char *s) {
22712271
wlen = ::MultiByteToWideChar(
22722272
CP_UTF8, 0, s, len,
22732273
const_cast<LPWSTR>(reinterpret_cast<LPCWSTR>(ws.data())), wlen);
2274-
if (wlen != ws.size()) { ws.clear(); }
2274+
if (wlen != static_cast<int>(ws.size())) { ws.clear(); }
22752275
}
22762276
return ws;
22772277
}

0 commit comments

Comments
 (0)