Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/common lint: fix Clang-tidy warning about narr...
details: https://anonhg.NetBSD.org/src/rev/8f123c5282dd
branches: trunk
changeset: 958277:8f123c5282dd
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Dec 30 11:47:15 2020 +0000
description:
lint: fix Clang-tidy warning about narrowing conversion
diffstat:
usr.bin/xlint/common/emit.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r e069f2442d58 -r 8f123c5282dd usr.bin/xlint/common/emit.c
--- a/usr.bin/xlint/common/emit.c Wed Dec 30 11:43:13 2020 +0000
+++ b/usr.bin/xlint/common/emit.c Wed Dec 30 11:47:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emit.c,v 1.8 2020/12/30 10:46:11 rillig Exp $ */
+/* $NetBSD: emit.c,v 1.9 2020/12/30 11:47:15 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: emit.c,v 1.8 2020/12/30 10:46:11 rillig Exp $");
+__RCSID("$NetBSD: emit.c,v 1.9 2020/12/30 11:47:15 rillig Exp $");
#endif
#include <ctype.h>
@@ -133,7 +133,7 @@
}
/*
- * write a character to the output buffer, qouted if necessary
+ * write a character to the output buffer, quoted if necessary
*/
void
outqchar(int c)
@@ -175,8 +175,8 @@
outchar('a');
break;
default:
- outchar((((u_int)c >> 6) & 07) + '0');
- outchar((((u_int)c >> 3) & 07) + '0');
+ outchar((((unsigned char)c >> 6) & 07) + '0');
+ outchar((((unsigned char)c >> 3) & 07) + '0');
outchar((c & 07) + '0');
break;
}
Home |
Main Index |
Thread Index |
Old Index