summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-03 01:59:38 +0100
committerAraq <rumpf_a@web.de>2013-12-03 01:59:38 +0100
commitfe983b13099dd8d8a93ebefc00174e98eb048dea (patch)
tree2d437512f120011dd4be4215bcc9e37d7aa29ac6 /lib/system
parent5dcfa97fb959eda3cb8a41e2bd39e998c30052c8 (diff)
downloadNim-fe983b13099dd8d8a93ebefc00174e98eb048dea.tar.gz
fixes a regression where memset was used without including <string.h>
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/gc.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 48705db96..d2b065d6b 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -629,8 +629,7 @@ proc doOperation(p: pointer, op: TWalkOp) =
   case op
   of waZctDecRef:
     #if not isAllocatedPtr(gch.region, c):
-    #  return
-    #  c_fprintf(c_stdout, "[GC] decref bug: %p", c) 
+    #  c_fprintf(c_stdout, "[GC] decref bug: %p", c)
     gcAssert(isAllocatedPtr(gch.region, c), "decRef: waZctDecRef")
     gcAssert(c.refcount >=% rcIncrement, "doOperation 2")
     #c.refcount = c.refcount -% rcIncrement