One more (chtype) cast for ERR, in a comparison to the returned value

from mvwinch().
This commit is contained in:
William McBrine
2005-11-19 20:34:25 +00:00
parent d0ca9af570
commit bd9df7ffe4

View File

@@ -43,7 +43,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_instr = "$Id: instr.c,v 1.1 2001/01/10 08:27:12 mark Exp $";
char *rcsid_instr = "$Id: instr.c,v 1.2 2005/11/19 20:34:25 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -175,7 +175,7 @@ int n;
for ( ic=0; ic < imax; ic++ )
{
tmp = mvwinch( win, oldy, oldx+ic );
if( tmp == ERR )
if( tmp == (chtype)ERR )
{
*(str+imax) = '\0';
return( ERR );