Oct. 30, 2017
4:40 p.m.
Hi Pablo, correcting the type declaration in the ffiCall solved the problem, thanks! Cheers, Paulo On 10/30/2017 05:24 PM, tesonep@gmail.com wrote:
Hi,  the problem is that the Zq function has the following signature:
int zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags);
And in your ffiCall you are putting #long.Â
You should use the correct size of integers, as the binary numbers need to extend the size when they are negatives.Â
0xFFFFFFFF is a valid positive for a long, but a -1 for an int.Â
Cheers.
-- Pablo Tesone. tesonep@gmail.com <mailto:tesonep@gmail.com>