rnowley / nim-ncurses

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

fix a compile time error #22

Closed ghost closed 5 years ago

ghost commented 5 years ago

the demo code:

import ncurses

initscr()
printw("hello world")
refresh()
getch()
endwin()

error message:

~/nim-ncurses/ncurses.nim(237, 32) template/generic instantiation of `NCURSES_BITS` from here
~/nim-ncurses/ncurses.nim(84, 16) Error: -1 can't be converted to chtype

define chtype with cint will fix it.