Set correct last_used when creating new vlist.

This commit is contained in:
Simon Forman 2023-02-16 11:41:35 -08:00
parent 95f927ae95
commit 823c53308c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ p2 = (o4, 0) # points to 9
def cons(thing, vlist_ptr):
if not vlist_ptr:
return ((), 0, 1, [0], [thing]), 0
return ((), 0, 1, [1], [thing]), 0
(base, offset, size, last_used_list, data), pointer_offset = vlist_ptr
[last_used] = last_used_list