fixes a regression where memset was used without including <string.h>

This commit is contained in:
Araq
2013-12-03 01:59:38 +01:00
parent 5dcfa97fb9
commit fe983b1309
5 changed files with 29 additions and 2 deletions

View File

@@ -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