From ce591a73e5bafcf08b93da768b8c76c5e824f599 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 31 Dec 2002 17:40:52 +0000 Subject: make gcc33 happy git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/more.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mbbsd/more.c') diff --git a/mbbsd/more.c b/mbbsd/more.c index 3afc6ca9..a1d82e42 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,4 +1,4 @@ -/* $Id: more.c,v 1.21 2002/09/11 07:16:49 kcwu Exp $ */ +/* $Id: more.c,v 1.22 2002/12/31 17:40:51 in2 Exp $ */ #include "bbs.h" #define MORE_BUFSIZE 4096 #define MORE_WINSIZE 4096 @@ -293,7 +293,9 @@ more(char *fpath, int promptend) else pos++; - if (!scrollup && ++lino >= b_lines && pageno < MAX_PAGES - 1) { + if (!scrollup && + ++lino >= (unsigned)b_lines && + pageno < MAX_PAGES - 1 ) { pagebreak[++pageno] = viewed; lino = 1; } @@ -553,7 +555,7 @@ more(char *fpath, int promptend) clear(); } } - if (pageno && lino > 1 + local) { + if (pageno && (int)lino > 1 + local) { line = (lino - 2) - local; if (pageno > 1 && viewed == fsize) line += local; -- cgit v1.2.3