aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
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, '*');