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: improve comment about INT keeping ...
details: https://anonhg.NetBSD.org/src/rev/75914f76ae3a
branches: trunk
changeset: 984282:75914f76ae3a
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Jun 30 12:28:03 2021 +0000
description:
lint: improve comment about INT keeping t_is_enum
diffstat:
usr.bin/xlint/lint1/tree.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r de7e6a8bbeff -r 75914f76ae3a usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Wed Jun 30 12:26:35 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c Wed Jun 30 12:28:03 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.298 2021/06/29 21:16:54 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.299 2021/06/30 12:28:03 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.298 2021/06/29 21:16:54 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.299 2021/06/30 12:28:03 rillig Exp $");
#endif
#include <float.h>
@@ -1748,7 +1748,8 @@
ntp = expr_dup_type(tn->tn_type);
ntp->t_tspec = t;
/*
- * Keep t_is_enum so we are later able to check compatibility
+ * Keep t_is_enum even though t_tspec gets converted from
+ * ENUM to INT, so we are later able to check compatibility
* of enum types.
*/
tn = convert(op, 0, ntp, tn);
Home |
Main Index |
Thread Index |
Old Index