ext/fiddle/function.c in fiddle-1.0.8 vs ext/fiddle/function.c in fiddle-1.0.9

- old
+ new

@@ -376,12 +376,13 @@ } { int errno_keep = errno; #if defined(_WIN32) + DWORD error = WSAGetLastError(); int socket_error = WSAGetLastError(); rb_funcall(mFiddle, rb_intern("win32_last_error="), 1, - INT2NUM(errno_keep)); + ULONG2NUM(error)); rb_funcall(mFiddle, rb_intern("win32_last_socket_error="), 1, INT2NUM(socket_error)); #endif rb_funcall(mFiddle, rb_intern("last_error="), 1, INT2NUM(errno_keep)); }