fixed the hashtable example and workarounds for misbehaving defer in allocators

This commit is contained in:
Irmen de Jong
2025-09-17 22:53:01 +02:00
parent efd73fd10d
commit 9461e4088c
9 changed files with 36 additions and 40 deletions
+3 -2
View File
@@ -227,7 +227,8 @@ arena {
uword next = buffer
sub alloc(ubyte size) -> uword {
defer next += size
return next
uword result = next
next += size
return result
}
}