mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
fixes memory region not updating when passed to withRegion template.
This commit is contained in:
@@ -79,6 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
|
||||
try:
|
||||
body
|
||||
finally:
|
||||
r = tlRegion
|
||||
tlRegion = oldRegion
|
||||
|
||||
template inc(p: pointer, s: int) =
|
||||
|
||||
Reference in New Issue
Block a user