fixed a small bug in tests/alloc.sl
This commit is contained in:
@@ -15,6 +15,7 @@ struct: Point
|
|||||||
|
|
||||||
word main
|
word main
|
||||||
32 alloc # allocate 32 bytes (enough for a Point struct)
|
32 alloc # allocate 32 bytes (enough for a Point struct)
|
||||||
|
dup
|
||||||
dup 111 swap Point.x!
|
dup 111 swap Point.x!
|
||||||
dup 222 swap Point.y!
|
dup 222 swap Point.y!
|
||||||
dup Point.x@ puti cr
|
dup Point.x@ puti cr
|
||||||
|
|||||||
Reference in New Issue
Block a user