diff options
| author | rillig <rillig@NetBSD.org> | 2022-04-20 22:50:56 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-04-20 22:50:56 +0000 |
| commit | 92d5f1e4734f929af127cca1e2b3d68fc19d2193 (patch) | |
| tree | 7446d36c1b7dde100071992659b660187d8253af /sys/dev/microcode | |
| parent | d62ea836284cb39775eb4752e7307a160802624f (diff) | |
tests/lint: fix test for message 132 to be platform-independent
On i386, the test failed because the warning in line 101 was not
generated. This was because size_t on i386 is unsigned int (see
arch/i386/targparam.h, SIZEOF_TSPEC). The result of the multiplication
had type unsigned int, and message 132 does not trigger for a conversion
from unsigned int to signed int because both types have the same size
(see check_integer_conversion, portable_size_in_bits).
Change the involved type from size_t (which the original code used) to
unsigned long long (which is uint64_t on all platforms supported by
lint), so that the warning is generated on all platforms in the same
way.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions
