summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/struct.c b/struct.c
index 91e6807c..af2bdaaf 100644
--- a/struct.c
+++ b/struct.c
@@ -1316,9 +1316,8 @@ static void struct_inst_print(val obj, val out, val pretty,
if (!nullocp(ptr)) {
if (compat)
funcall2(deref(ptr), obj, out);
- else
- funcall3(deref(ptr), obj, out, pretty);
- return;
+ else if (funcall3(deref(ptr), obj, out, pretty) != colon_k)
+ return;
}
}