From 0ab0918bc128b11a0e22cd0d69189280a9d103fd Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 15 Dec 2025 22:48:41 +0100 Subject: c: improve some type error diagnostics --- io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 8d9af5c..e3af76b 100644 --- a/io.c +++ b/io.c @@ -213,7 +213,8 @@ pritypebefore(struct wbuf *buf, union type ty, int qual) case TYPTR: chld = typechild(ty); n = pritypebefore(buf, chld, ty.flag & TFCHLDQUAL); - n += bputc(buf, ' '); + if (!isptrcvtt(chld.t)) + n += bputc(buf, ' '); if (chld.t == TYARRAY || chld.t == TYFUNC) n += bputc(buf, '('); n += bputc(buf, '*'); -- cgit v1.2.3