Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Implicit conversion loses integer precision #140

Open
neirar opened this issue Nov 13, 2015 · 1 comment
Open

Warning: Implicit conversion loses integer precision #140

neirar opened this issue Nov 13, 2015 · 1 comment

Comments

@neirar
Copy link

neirar commented Nov 13, 2015

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 neirar changed the title "Implicit conversion loses integer precision" Warning Warning: Implicit conversion loses integer precision Nov 13, 2015
@hintjens
Copy link
Member

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
#140.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants