zeromq4-x icon indicating copy to clipboard operation
zeromq4-x copied to clipboard

Warning: Implicit conversion loses integer precision

Open neirar opened this issue 9 years ago • 1 comments

Getting warnings in Xcode. In zmq.cpp, in the function zmq_poll(), the lines

return usleep (timeout_ * 1000);

and

timeout = end - now;

In zmp_utils.cpp, in the function zmq_z85_decode() the line

unsigned int string_len = strlen (string);

You need to either do a cast (in the case of usleep() since it is a system function and it expects and unsigned int), or you need to change the data type of the variables.

neirar avatar Nov 13 '15 11:11 neirar

For these and other issues on 4-x, please raise the issue on zeromq/libzmq, and if there is a fix already there, you can propose a backport of it to zeromq4-x (and make a pull request).

On Fri, Nov 13, 2015 at 12:53 PM, Roberto [email protected] wrote:

Getting warnings in Xcode. In zmq.cpp, in the function zmq_poll(), the lines

return usleep (timeout_ * 1000);

and

timeout = end - now;

In zmp_utils.cpp, in the function zmq_z85_decode() the line

unsigned int string_len = strlen (string);

You need to either do a cast (in the case of usleep() since it is a system function and it expects and unsigned int), or you need to change the data type of the variables.

— Reply to this email directly or view it on GitHub https://github.com/zeromq/zeromq4-x/issues/140.

hintjens avatar Nov 13 '15 11:11 hintjens