Skip to content

Commit

Permalink
Fix #1986 (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose authored Nov 27, 2024
1 parent da2f9e4 commit fe07660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,7 @@ inline std::wstring u8string_to_wstring(const char *s) {
wlen = ::MultiByteToWideChar(
CP_UTF8, 0, s, len,
const_cast<LPWSTR>(reinterpret_cast<LPCWSTR>(ws.data())), wlen);
if (wlen != ws.size()) { ws.clear(); }
if (wlen != static_cast<int>(ws.size())) { ws.clear(); }
}
return ws;
}
Expand Down

0 comments on commit fe07660

Please sign in to comment.