fixes memory region not updating when passed to withRegion template.

This commit is contained in:
Hakan Deryal
2016-10-13 19:08:31 +03:00
parent 00cb5b4965
commit 67b635029d

View File

@@ -79,6 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
try:
body
finally:
r = tlRegion
tlRegion = oldRegion
template inc(p: pointer, s: int) =