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
commit 67b635029d

View file

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