Pull in some of the lpt_port_test fixes from lpt.c.
[unix-history] / lib / libcurses / insertln.c
index 87a61ee..9a9e321 100644 (file)
@@ -55,7 +55,7 @@ winsertln(win)
 #endif
        if (win->orig == NULL)
                temp = win->lines[win->maxy - 1];
 #endif
        if (win->orig == NULL)
                temp = win->lines[win->maxy - 1];
-       for (y = win->maxy - 1; y > win->cury; --y) {
+       for (y = win->maxy - 1; y > (int) win->cury; --y) {
                win->lines[y]->flags &= ~__ISPASTEOL;
                win->lines[y - 1]->flags &= ~__ISPASTEOL;
                if (win->orig == NULL)
                win->lines[y]->flags &= ~__ISPASTEOL;
                win->lines[y - 1]->flags &= ~__ISPASTEOL;
                if (win->orig == NULL)