rnowley / nim-ncurses

A Nim language wrapper for NCurses
57 stars 12 forks source link

`int` used instead of `cint` (everywhere?) #19

Open timotheecour opened 5 years ago

timotheecour commented 5 years ago

https://linux.die.net/man/3/mvaddch says:

int mvaddch(int y, int x, const chtype ch);

https://github.com/rnowley/nim-ncurses/blob/master/ncurses.nim says:

proc mvaddch*(y: int; x: int; character: chtype): cint {.cdecl, discardable, importc: "mvaddch", dynlib: libncurses.}

looks like int should be cint