Browse Source

tiny rewrite, to avoid type conversion warnings

pre-master-46
rlar 16 years ago
parent
commit
8141892f72
  1. 4
      ChangeLog
  2. 3
      src/frontend/help/readhelp.c

4
ChangeLog

@ -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

3
src/frontend/help/readhelp.c

@ -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;
}

Loading…
Cancel
Save