Commit fd8d6d47 authored by KIU Shueng Chuan's avatar KIU Shueng Chuan

use enum retired_fd instead of -1

using -1 causes a warning on Windows platform because SOCKET is unsigned.
parent a9492a08
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment