* Lint, vbl, and p->offset.
@ 2010-05-24 21:41 Kristaps Dzonsons
0 siblings, 0 replies; only message in thread
From: Kristaps Dzonsons @ 2010-05-24 21:41 UTC (permalink / raw)
To: tech
Hello!
`make lint LINTFLAGS="-cefuhx"' shows an interesting
term.c:164: warning: converted from 'int' to 'unsigned long'
term.c:164: vbl = p->flags & TERMP_NOLPAD ? 0 : p->offset;
term.c:171: warning: converted from 'int' to 'unsigned long'
term.c:171: vis = vend = i = 0;
I'm pretty sure that p->offset can be negative when it arrives (at least
it was once upon a time). Can this be case and LINTED or does it need
fixin'? If offset is no longer negative ever, it should be made into a
size_t.
Thanks,
Kristaps
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-24 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-24 21:41 Lint, vbl, and p->offset Kristaps Dzonsons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).