mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
use enum retired_fd instead of -1
using -1 causes a warning on Windows platform because SOCKET is unsigned.
This commit is contained in:
parent
a9492a0852
commit
fd8d6d471f
@ -121,7 +121,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
if (s->mailbox.get_fd () == -1)
|
||||
if (s->mailbox.get_fd () == retired_fd)
|
||||
return NULL;
|
||||
|
||||
alloc_assert (s);
|
||||
|
Loading…
Reference in New Issue
Block a user