mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 16:43:58 +00: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
97e1ecce22
commit
3dc89feafc
@ -119,7 +119,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
|
|||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (s->mailbox.get_fd () == -1)
|
if (s->mailbox.get_fd () == retired_fd)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
alloc_assert (s);
|
alloc_assert (s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user