-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
I have solution configured with warning treated as error on Win32/MSVS2017 and have a warning that prevents me to build:
httplib.h(1755): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
Please add #ifdef _WIN32
and static_cast<int>(ai.ai_addrlen)
here:
Line 1755 in e7e9ec6
if (::bind(sock, ai.ai_addr, ai.ai_addrlen)) { |
and here:
Line 2002 in e7e9ec6
auto ret = connect(sock, ai.ai_addr, ai.ai_addrlen); |
Also maybe add global namespace prefix ::
to be holistic. Maybe in other places too.
Thank you for a good lib.
Metadata
Metadata
Assignees
Labels
No labels