Skip to content

Commit b43547c

Browse files
committed
* fix socket_get_last_error on Windows
1 parent fa8fcef commit b43547c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace netlib {
4040

4141
static std::error_condition socket_get_last_error(){
4242
#ifdef _WIN32
43-
return WASGetLastError();
43+
return std::make_error_condition(static_cast<std::errc>(WASGetLastError()));
4444
#else
4545
return std::make_error_condition(static_cast<std::errc>(errno));
4646
#endif

0 commit comments

Comments
 (0)