Module Name: src
Committed By: rillig
Date: Sat Sep 10 13:13:22 UTC 2022
Modified Files:
src/tests/usr.bin/xlint/lint1: queries.c
Log Message:
tests/lint: fix test for queries on platforms where char is unsigned
These platforms reported an additional "implicit conversion changes
sign" in lines 105, 105, 118, 122.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/queries.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/queries.c
diff -u src/tests/usr.bin/xlint/lint1/queries.c:1.4 src/tests/usr.bin/xlint/lint1/queries.c:1.5
--- src/tests/usr.bin/xlint/lint1/queries.c:1.4 Sun Aug 28 08:41:06 2022
+++ src/tests/usr.bin/xlint/lint1/queries.c Sat Sep 10 13:13:22 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: queries.c,v 1.4 2022/08/28 08:41:06 rillig Exp $ */
+/* $NetBSD: queries.c,v 1.5 2022/09/10 13:13:22 rillig Exp $ */
# 3 "queries.c"
/*
@@ -93,10 +93,10 @@ Q3(int i, unsigned u)
}
unsigned long long
-Q4(char *ptr, int i, unsigned long long ull)
+Q4(signed char *ptr, int i, unsigned long long ull)
{
/*
- * The conversion from 'char' to 'int' is done by the integer
+ * The conversion from 'signed char' to 'int' is done by the integer
* promotions (C11 6.3.1.1p2), not by the usual arithmetic
* conversions (C11 6.3.1.8p1).
*/