From: Chris Hanson Date: Sat, 10 Aug 2019 21:04:08 +0000 (-0700) Subject: Fix thinko in previous change. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=01620c4b6d28db47c801d2f0037126ec72be4364;p=mit-scheme.git Fix thinko in previous change. --- 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)