🐛 Remove children correctly

This commit is contained in:
Elena Torro 2025-04-09 12:19:47 +02:00
parent 82cf474863
commit 953db56a0d
4 changed files with 13 additions and 14 deletions

View file

@ -198,9 +198,8 @@
(when-not (empty? entries)
(let [id (first entries)]
(sr/heapu32-set-uuid id heap (mem/ptr8->ptr32 current-offset))
(recur (rest entries) (+ current-offset CHILD-ENTRY-SIZE)))))
(h/call wasm/internal-module "_set_children")))))
(recur (rest entries) (+ current-offset CHILD-ENTRY-SIZE)))))))
(h/call wasm/internal-module "_set_children")))
(defn- get-string-length [string] (+ (count string) 1))