Module Name:    src
Committed By:   rillig
Date:           Sat Aug  5 10:00:59 UTC 2023

Modified Files:
        src/tests/usr.bin/xlint/lint1: d_packed_structs.c

Log Message:
tests/lint: fix test for packed structs on 32-bit platforms


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/d_packed_structs.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/d_packed_structs.c
diff -u src/tests/usr.bin/xlint/lint1/d_packed_structs.c:1.5 src/tests/usr.bin/xlint/lint1/d_packed_structs.c:1.6
--- src/tests/usr.bin/xlint/lint1/d_packed_structs.c:1.5	Tue Aug  1 19:52:15 2023
+++ src/tests/usr.bin/xlint/lint1/d_packed_structs.c	Sat Aug  5 10:00:59 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: d_packed_structs.c,v 1.5 2023/08/01 19:52:15 rillig Exp $	*/
+/*	$NetBSD: d_packed_structs.c,v 1.6 2023/08/05 10:00:59 rillig Exp $	*/
 # 3 "d_packed_structs.c"
 
 /* packed tests */
@@ -30,12 +30,12 @@ typedef struct __packed {
 
 struct x {
 	char c;
-	long l;
+	long long l;
 } __packed;
 
 struct y {
 	char c;
-	long l;
+	long long l;
 };
 
 int a[sizeof(struct y) - sizeof(struct x) - 1];

Reply via email to