about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-04-02 22:37:48 +0200
committerBaitinq <[email protected]>2025-04-02 23:27:47 +0200
commit05eff82d55c817ed30f38fa2a4e00dc87b299a21 (patch)
tree072c0eb881a9f49ee796f53786345c88be33f342 /examples
parentFeature: Start adding support for assigning to pointers with arithmetic (diff)
downloadinterpreter-05eff82d55c817ed30f38fa2a4e00dc87b299a21.tar.gz
interpreter-05eff82d55c817ed30f38fa2a4e00dc87b299a21.tar.bz2
interpreter-05eff82d55c817ed30f38fa2a4e00dc87b299a21.zip
Codegen: Fix GEP type
Diffstat (limited to 'examples')
-rw-r--r--examples/18.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/18.src b/examples/18.src
index 6d75e30..c050f8c 100644
--- a/examples/18.src
+++ b/examples/18.src
@@ -3,7 +3,7 @@ extern malloc = (i64) => *i64;
 extern free = (*i64) => void;
 
 let main = () => i64 {
-	let x = malloc(128);
+	let x = malloc(24);
 	(*(x+0)) = 10;
 	(*(x+1)) = 20;
 	(*(x+2)) = 40;