I have a dll compiled in C with a function that has the following signature: int wmove(WINDOW *, int, int);
In Nim I have the following corresponding procedure: type WINDOW {.pure, final.} = object proc wmove*(a2: ptr WINDOW; a3, a4: cint): cint {.cdecl, importc: "wmove", dynlib: "pdcurses.dll".} When calling the procedure _wmove_ in Nim the **cint** parameters seem not to be passed correctly to the C function. I inserted a _printf("y=%d x=%d", a3, a4)_ call for the _cint_ parameter in the C function and it prints garbage! Does anyone know what the problem is? OS: Windows 10 x64 Nim: Nim Compiler Version 0.17.3 [Windows: i386] Dll: PDCurses 3.4 or 3.5, makes no difference. Compiled as described in the README using mingw-gcc x86. Thanks