fixed a small bug in tests/alloc.sl

This commit is contained in:
IgorCielniak
2026-01-12 08:42:54 +01:00
parent 77594f45f4
commit fc67639aa5
2 changed files with 3 additions and 2 deletions

View File

@@ -2,4 +2,4 @@ import nob.sl
word main
"ls" sh
end
end

View File

@@ -15,9 +15,10 @@ struct: Point
word main
32 alloc # allocate 32 bytes (enough for a Point struct)
dup
dup 111 swap Point.x!
dup 222 swap Point.y!
dup Point.x@ puti cr
Point.y@ puti cr
32 free # free the memory
end
end