Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/arch/aarch64 lint: make char unsigned on aarch64
details: https://anonhg.NetBSD.org/src/rev/e9f525eea1e4
branches: trunk
changeset: 984735:e9f525eea1e4
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jul 20 18:43:06 2021 +0000
description:
lint: make char unsigned on aarch64
This fixes tests msg_074 and msg_076, which previously warned for
'\xff': conversion of 'int' to 'char' is out of range [119]
The commit from 2014-08-10 that first defined char as signed had the
remark "Enough for a distribution build". At that time, there was no
unit test for lint1 that would have detected the signedness of char.
diffstat:
usr.bin/xlint/arch/aarch64/targparam.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 188b88c57410 -r e9f525eea1e4 usr.bin/xlint/arch/aarch64/targparam.h
--- a/usr.bin/xlint/arch/aarch64/targparam.h Tue Jul 20 16:41:27 2021 +0000
+++ b/usr.bin/xlint/arch/aarch64/targparam.h Tue Jul 20 18:43:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: targparam.h,v 1.5 2021/06/27 08:43:46 rillig Exp $ */
+/* $NetBSD: targparam.h,v 1.6 2021/07/20 18:43:06 rillig Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/*
* Machine-dependent target parameters for lint1.
*/
-#include "schar.h"
+#include "uchar.h"
#include "lp64.h"
/*
Home |
Main Index |
Thread Index |
Old Index