Skip to content

Commit

Permalink
missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
planetis-m committed Jun 21, 2024
1 parent f1dc77b commit b32bb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmem.nim
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ proc createMemPool*(size: Natural): MemPool =
return
result.arena.size.setOwned size
result.arena.mem = cast[uint](buf)
result.arena.offs = result.arena.mem + uint(result.arena.size)
result.arena.offs = result.arena.mem + uint(result.arena.size.getVal)

proc createMemPoolFromBuffer*(buf {.noalias.}: pointer, size: Natural): MemPool =
result = MemPool()
Expand Down

0 comments on commit b32bb09

Please sign in to comment.