From 01620c4b6d28db47c801d2f0037126ec72be4364 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 10 Aug 2019 14:04:08 -0700 Subject: [PATCH] Fix thinko in previous change. --- src/runtime/printer.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtime/printer.scm b/src/runtime/printer.scm index 8fead3c48..f94297ccb 100644 --- a/src/runtime/printer.scm +++ b/src/runtime/printer.scm @@ -283,10 +283,11 @@ USA. (walk (safe-vector-ref object i)) (loop (+ i 1))))))) (maybe-unmark! object)))) - ((and (promise? object) (promise-forced? object)) + ((promise? object) (if (mark! object) (begin - (walk (promise-value object)) + (if (promise-forced? object) + (walk (promise-value object))) (maybe-unmark! object)))) ((%tagged-object? object) (if (mark! object) -- 2.25.1