From 67b635029d13c240b081c84cd8a0f8a86137212b Mon Sep 17 00:00:00 2001 From: Hakan Deryal Date: Thu, 13 Oct 2016 19:08:31 +0300 Subject: [PATCH] fixes memory region not updating when passed to withRegion template. --- lib/system/gc_stack.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/system/gc_stack.nim b/lib/system/gc_stack.nim index 5f72b8959..6f492c307 100644 --- a/lib/system/gc_stack.nim +++ b/lib/system/gc_stack.nim @@ -79,6 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) = try: body finally: + r = tlRegion tlRegion = oldRegion template inc(p: pointer, s: int) =