diff options
author | 2006-04-25 01:25:40 +0000 | |
---|---|---|
committer | 2006-04-25 01:25:40 +0000 | |
commit | d6ddbcc2b7ea0a1bed5d12660e936547c6969f46 (patch) | |
tree | 8766abbeabec611723217fe3604dd9c0e8d748bb /lib | |
parent | add a little spacing to HISTORY; (diff) | |
download | wireguard-openbsd-d6ddbcc2b7ea0a1bed5d12660e936547c6969f46.tar.xz wireguard-openbsd-d6ddbcc2b7ea0a1bed5d12660e936547c6969f46.zip |
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 'lib')
0 files changed, 0 insertions, 0 deletions