From 85bbdf60d74ebb869d91073649cc94ec68ff9f98 Mon Sep 17 00:00:00 2001 From: Pierce Darragh Date: Fri, 1 Jul 2022 12:25:16 -0600 Subject: [PATCH] interpreter/state: fix hash-mapping implementation for #1 --- interpreter/state.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreter/state.rkt b/interpreter/state.rkt index 16f2ae2..37f578d 100644 --- a/interpreter/state.rkt +++ b/interpreter/state.rkt @@ -95,5 +95,6 @@ [(registers) (hash-set new-registers 'rsp sp)] [(runtime) - (hash-map runtime convert-external-function)]) + (for/hash ([(key func) (in-hash runtime)]) + (values key (convert-external-function func)))]) (State 0 ip ip sp labels registers new-flags memory runtime)))