summaryrefslogtreecommitdiff
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-06-03 20:28:54 +0000
committerrillig <rillig@NetBSD.org>2023-06-03 20:28:54 +0000
commitad4d59905914423d7781a387c12934ecc5865420 (patch)
tree5ea29cf3684f987d7a0b330fa8bd35884fc25855 /usr.bin/xlint
parent5381e158fb8346d022e4a036c0d3deaca4252bc1 (diff)
lint: provide more detailed types when operands do not match
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/lint1/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c
index f1a26fb3c11..8a0725737e1 100644
--- a/usr.bin/xlint/lint1/tree.c
+++ b/usr.bin/xlint/lint1/tree.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.524 2023/05/22 12:55:04 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.525 2023/06/03 20:28:54 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: tree.c,v 1.524 2023/05/22 12:55:04 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.525 2023/06/03 20:28:54 rillig Exp $");
#endif
#include <float.h>
@@ -2203,7 +2203,7 @@ warn_incompatible_types(op_t op,
error(171, type_name(ltp), type_name(rtp));
} else if (mp->m_binary) {
/* operands of '%s' have incompatible types '%s' and '%s' */
- error(107, mp->m_name, tspec_name(lt), tspec_name(rt));
+ error(107, mp->m_name, type_name(ltp), type_name(rtp));
} else {
lint_assert(rt == NO_TSPEC);
/* operand of '%s' has invalid type '%s' */