tiny rewrite, to avoid type conversion warnings

This commit is contained in:
rlar 2010-11-06 17:14:34 +00:00
parent dd34b783cf
commit 8141892f72
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-11-06 Robert Larice
* src/frontend/help/readhelp.c :
tiny rewrite, to avoid type conversion warnings
2010-11-06 Robert Larice
* src/frontend/parser/lexical.c :
minor rewrite, a local variable type change

View File

@ -117,7 +117,8 @@ hlp_read(fplace *place)
wl->wl_prev = end;
end = wl;
top->numlines++;
if ((i = strlen(&buf[6]) - fchanges) > top->maxcols)
i = (int) strlen(&buf[6]) - fchanges;
if (top->maxcols < i)
top->maxcols = i;
mof = fgets(buf, BSIZE_SP, place->fp) == NULL ? FALSE : TRUE;
}