Module Name: src
Committed By: rillig
Date: Thu Sep 2 07:04:41 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: emit1.c
Log Message:
lint: fix typo in assertion
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/emit1.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/emit1.c
diff -u src/usr.bin/xlint/lint1/emit1.c:1.53 src/usr.bin/xlint/lint1/emit1.c:1.54
--- src/usr.bin/xlint/lint1/emit1.c:1.53 Tue Aug 31 23:10:52 2021
+++ src/usr.bin/xlint/lint1/emit1.c Thu Sep 2 07:04:41 2021
@@ -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 @@ outtype(const type_t *tp)
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)