mirror of
https://github.com/irmen/prog8.git
synced 2026-04-20 11:17:01 +00:00
fixed the hashtable example and workarounds for misbehaving defer in allocators
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user