fixes memory region not updating when passed to withRegion template.
This commit is contained in:
parent
00cb5b4965
commit
67b635029d
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
|
|||
try:
|
||||
body
|
||||
finally:
|
||||
r = tlRegion
|
||||
tlRegion = oldRegion
|
||||
|
||||
template inc(p: pointer, s: int) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue