From ddd6a6ab5644af5716e8b2e4f44d18fd01d68a4a 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 e2df4e8f6..454d16a1d 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