0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-16 12:16:33 +08:00

Problem: fn pointers are not bool (vc++ warning C4550).

This commit is contained in:
evoskuil 2017-12-14 12:47:38 -08:00
parent 87fbe5a542
commit 8d78e08f71

View File

@ -50,7 +50,7 @@ bool zmq::timers_t::check_tag ()
int zmq::timers_t::add (size_t interval_, timers_timer_fn handler_, void *arg_)
{
if (!handler_) {
if (handler_ == NULL) {
errno = EFAULT;
return -1;
}