Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: fix compiler warning about signedn...



details:   https://anonhg.NetBSD.org/src/rev/7afffb53167f
branches:  trunk
changeset: 1021023:7afffb53167f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon May 03 03:46:55 2021 +0000

description:
lint: fix compiler warning about signedness mismatch

No functional change.

diffstat:

 usr.bin/xlint/lint1/lex.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 172a216234dd -r 7afffb53167f usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sun May 02 22:07:49 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Mon May 03 03:46:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.31 2021/05/01 00:08:44 christos Exp $ */
+/* $NetBSD: lex.c,v 1.32 2021/05/03 03:46:55 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: lex.c,v 1.31 2021/05/01 00:08:44 christos Exp $");
+__RCSID("$NetBSD: lex.c,v 1.32 2021/05/03 03:46:55 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -261,7 +261,7 @@
 
 
 static void
-add_keyword(struct kwtab *kw, int deco)
+add_keyword(struct kwtab *kw, u_int deco)
 {
        sym_t *sym;
        size_t h;



Home | Main Index | Thread Index | Old Index