From fc67639aa5364a0fffe2e5be9aa17ce8f9929107 Mon Sep 17 00:00:00 2001 From: IgorCielniak Date: Mon, 12 Jan 2026 08:42:54 +0100 Subject: [PATCH] fixed a small bug in tests/alloc.sl --- nob_test.sl | 2 +- tests/alloc.sl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nob_test.sl b/nob_test.sl index 92d037c..86acba0 100644 --- a/nob_test.sl +++ b/nob_test.sl @@ -2,4 +2,4 @@ import nob.sl word main "ls" sh -end \ No newline at end of file +end diff --git a/tests/alloc.sl b/tests/alloc.sl index 4b989f4..82b3dfd 100644 --- a/tests/alloc.sl +++ b/tests/alloc.sl @@ -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 \ No newline at end of file +end