From 2bcabcc66892ab302cbfae09e86de8c596c742b3 Mon Sep 17 00:00:00 2001 From: CrossNox Date: Mon, 28 Nov 2022 10:40:42 -0300 Subject: [PATCH] fix hardcoded idx --- src/rustint/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustint/core.clj b/src/rustint/core.clj index 2db0c24..f68276a 100644 --- a/src/rustint/core.clj +++ b/src/rustint/core.clj @@ -2122,7 +2122,7 @@ const_type (get syp (+ 3 idx_const)), const_value (get syp (+ 5 idx_const)), ] - (assoc-in amb [4 1 1] [const_name ['const const_type] const_value]) + (assoc-in amb [4 1 (count (get ctx 1))] [const_name ['const const_type] const_value]) ) ) )