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 typo in assertion



details:   https://anonhg.NetBSD.org/src/rev/31883b32d8c5
branches:  trunk
changeset: 1023296:31883b32d8c5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Sep 02 07:04:41 2021 +0000

description:
lint: fix typo in assertion

diffstat:

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

diffs (27 lines):

diff -r f8ed5bb23a2b -r 31883b32d8c5 usr.bin/xlint/lint1/emit1.c
--- a/usr.bin/xlint/lint1/emit1.c       Thu Sep 02 07:02:07 2021 +0000
+++ b/usr.bin/xlint/lint1/emit1.c       Thu Sep 02 07:04:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emit1.c,v 1.53 2021/08/31 23:10:52 rillig Exp $ */
+/* $NetBSD: emit1.c,v 1.54 2021/09/02 07:04:41 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: emit1.c,v 1.53 2021/08/31 23:10:52 rillig Exp $");
+__RCSID("$NetBSD: emit1.c,v 1.54 2021/09/02 07:04:41 rillig Exp $");
 #endif
 
 #include "lint1.h"
@@ -110,7 +110,7 @@
                        ts = ENUM;
                t = tt[ts];
                s = ss[ts];
-               lint_assert(t != '?' && t != '?');
+               lint_assert(t != '?' && s != '?');
                if (tp->t_const)
                        outchar('c');
                if (tp->t_volatile)



Home | Main Index | Thread Index | Old Index