diff --git a/src/machine/heap.rs b/src/machine/heap.rs index 6a5e14ef..a7317cc3 100644 --- a/src/machine/heap.rs +++ b/src/machine/heap.rs @@ -147,7 +147,9 @@ pub(crate) fn put_complete_string( } } None => { - empty_list_as_cell!() + let h = heap.len(); + heap.push(empty_list_as_cell!()); + heap_loc_as_cell!(h) } } }