Issue is the size of the datatypes is different. An int in Nim is 64 bits while 
a c int is 32 bits (on my system, your mileage may vary). If you instead cast 
to `cint` then it works since you'll be casting to the same size as the integer 
that you emitted

Reply via email to