From 6ccb927fabab976eba6b9207412033024700aca4 Mon Sep 17 00:00:00 2001 From: Denis Buzdalov Date: Tue, 27 Dec 2022 18:29:11 +0300 Subject: [PATCH] [ fix ] Eliminate invalid memory reference (chez's GC bug?) --- support/chez/support.ss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/chez/support.ss b/support/chez/support.ss index 69e85b9364..f1408ba790 100644 --- a/support/chez/support.ss +++ b/support/chez/support.ss @@ -28,8 +28,8 @@ (let ((exval (car e))) (if (bwp-object? exval) (let ((val ((cdr e)))) - (begin (set-car! e val) val)) - exval))) + (begin (set-car! e (box val)) val)) + (unbox exval)))) (define (blodwen-toSignedInt x bits) (if (logbit? bits x)