Hi Pablo,

correcting the type declaration in the ffiCall solved the problem, thanks!

Cheers,

Paulo

On 10/30/2017 05:24 PM, teso...@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.
> teso...@gmail.com <mailto:teso...@gmail.com>

Reply via email to