diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2006-04-25 01:25:42 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2006-04-25 01:25:42 +0000 |
commit | bd1445ea08135a120ede54606308afa17aa6c316 (patch) | |
tree | d962c09c7012836a4877203b2862c41e5df76f93 /regress/usr.bin/xlint/test-6.c.exp | |
parent | 62d18008f9e3c636cd24dd9a60a362165c842026 (diff) |
Rather than use the psize() macro everywhere (portable size macro which
only makes sense when -p option is specified to lint), add a new concept
and macro called rank(), which corresponds to the C99 definition of rank
for integral types. This has one main benefit, which is that on ILP32
platforms, if -p was not specified, lint did not warn when the code
converted from long to int, because they are the same size. This is
fixed.
While here, get rid of a false positive with warning 259, when converting
from an unsigned char to an int, for example.
Diffstat (limited to 'regress/usr.bin/xlint/test-6.c.exp')
0 files changed, 0 insertions, 0 deletions