Module Name: src Committed By: rillig Date: Fri May 3 19:16:13 UTC 2024
Modified Files: src/tests/usr.bin/xlint/lint1: expr_sizeof.c Log Message: tests/lint: fix supposedly platform-independent type definitions No idea where I got the previous type definitions from. The typedef names looked just too convincing to actually check the underlying types. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/tests/usr.bin/xlint/lint1/expr_sizeof.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint1/expr_sizeof.c diff -u src/tests/usr.bin/xlint/lint1/expr_sizeof.c:1.17 src/tests/usr.bin/xlint/lint1/expr_sizeof.c:1.18 --- src/tests/usr.bin/xlint/lint1/expr_sizeof.c:1.17 Fri May 3 15:32:37 2024 +++ src/tests/usr.bin/xlint/lint1/expr_sizeof.c Fri May 3 19:16:13 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: expr_sizeof.c,v 1.17 2024/05/03 15:32:37 rillig Exp $ */ +/* $NetBSD: expr_sizeof.c,v 1.18 2024/05/03 19:16:13 rillig Exp $ */ # 3 "expr_sizeof.c" /* @@ -7,8 +7,6 @@ */ /* lint1-extra-flags: -X 351 */ -// TODO: Remove the lp64 restriction when sequence_of_structs has been fixed. -/* lint1-only-if: lp64 */ /* * A sizeof expression can either take a type name or an expression. @@ -221,9 +219,9 @@ void sequence_of_structs(void) { typedef unsigned char uint8_t; - typedef short unsigned int uint16_t; + typedef unsigned short uint16_t; typedef unsigned int uint32_t; - typedef long unsigned int uint64_t; + typedef unsigned long long uint64_t; union fp_addr { uint64_t fa_64;