X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Flib_instr.c;h=809952fdf82fd02df86860a7b82ba2cc01c2bd2a;hp=d75dee9e40efa9ef7f40ec6dbe1bab20d3e2abbe;hb=b6d7123594f6959ad0a6602b3952d9e6abe261a0;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/ncurses/base/lib_instr.c b/ncurses/base/lib_instr.c index d75dee9e..809952fd 100644 --- a/ncurses/base/lib_instr.c +++ b/ncurses/base/lib_instr.c @@ -41,7 +41,7 @@ #include -MODULE_ID("$Id: lib_instr.c,v 1.14 2005/04/16 17:51:12 tom Exp $") +MODULE_ID("$Id: lib_instr.c,v 1.15 2005/11/20 01:38:03 tom Exp $") NCURSES_EXPORT(int) winnstr(WINDOW *win, char *str, int n) @@ -99,7 +99,7 @@ winnstr(WINDOW *win, char *str, int n) } } #else - str[i++] = CharOf(win->_line[row].text[col]); + str[i++] = (char) CharOf(win->_line[row].text[col]); #endif if (++col > win->_maxx) { col = 0;