--- - branch: MAIN date: Wed Jan 6 09:23:05 UTC 2021 files: - new: '1.4' old: '1.3' path: src/tests/usr.bin/xlint/lint1/msg_324.c pathrev: src/tests/usr.bin/xlint/lint1/msg_324.c@1.4 type: modified - new: '1.3' old: '1.2' path: src/tests/usr.bin/xlint/lint1/msg_324.exp pathrev: src/tests/usr.bin/xlint/lint1/msg_324.exp@1.3 type: modified id: 20210106T092305Z.3f520b1ff78f24f667d532a1b5da02b9d5e1fe37 log: | lint: fix test for message 324 on i386 i386 is an ILP32 platform (arch/i386/targparam.h). On these platforms, int and long have the same size, and even with the -p option for portability checks, INT_RSIZE in inittyp.c is defined to 4, not 3. Because of this, in check_integer_conversion, psize(nt) was not greater than psize(ot), and the warning was not issued. To make the test behave the same on all platforms, changed the long variables to long long, since long long is 64-bit on all platforms, and int is 32-bit. module: src subject: 'CVS commit: src/tests/usr.bin/xlint/lint1' unixtime: '1609924985' user: rillig