mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
tests repaired; serious typo in the allocator fixed; fixes #32
This commit is contained in:
@@ -561,7 +561,7 @@ proc alloc(allocator: var TMemRegion, size: int): pointer =
|
||||
result = cast[pointer](cast[TAddress](result) +% sizeof(TFreeCell))
|
||||
|
||||
proc alloc0(allocator: var TMemRegion, size: int): pointer =
|
||||
result = alloc(size)
|
||||
result = alloc(allocator, size)
|
||||
zeroMem(result, size)
|
||||
|
||||
proc dealloc(allocator: var TMemRegion, p: pointer) =
|
||||
|
||||
Reference in New Issue
Block a user