fixes a regression where memset was used without including <string.h>
This commit is contained in:
parent
5dcfa97fb9
commit
fe983b1309
5 changed files with 29 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue