summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 8ce4e4bb..6aac63a0 100644
--- a/hash.c
+++ b/hash.c
@@ -230,7 +230,10 @@ cnum cobj_hash_op(val obj)
static val print_key_val(val out, val key, val value)
{
- format(out, lit(" (~s ~s)"), key, value, nao);
+ if (value)
+ format(out, lit(" (~s ~s)"), key, value, nao);
+ else
+ format(out, lit(" (~s)"), key, nao);
return nil;
}