summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-29 03:19:10 +0100
committerAraq <rumpf_a@web.de>2013-12-29 03:19:10 +0100
commitb731e6ef1c4f10b9ba544c0a66ea1066b3c471a8 (patch)
tree01be2fef561c998bdffad7c026809b967a2315b7 /lib/system
parent438703f59e4d226f6e83e78c4f549a381526c6c2 (diff)
downloadNim-b731e6ef1c4f10b9ba544c0a66ea1066b3c471a8.tar.gz
case consistency: cs:partial bootstraps on windows
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/gc.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 6d6be33d0..0fb9bb482 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -132,9 +132,9 @@ when BitsPerPage mod (sizeof(int)*8) != 0:
 template color(c): expr = c.refCount and colorMask
 template setColor(c, col) =
   when col == rcBlack:
-    c.refcount = c.refCount and not colorMask
+    c.refcount = c.refcount and not colorMask
   else:
-    c.refcount = c.refCount and not colorMask or col
+    c.refcount = c.refcount and not colorMask or col
 
 proc writeCell(msg: cstring, c: PCell) =
   var kind = -1
@@ -211,7 +211,7 @@ proc decRef(c: PCell) {.inline.} =
 
 proc incRef(c: PCell) {.inline.} = 
   gcAssert(isAllocatedPtr(gch.region, c), "incRef: interiorPtr")
-  c.refcount = c.refCount +% rcIncrement
+  c.refcount = c.refcount +% rcIncrement
   # and not colorMask
   #writeCell("incRef", c)
   if canbeCycleRoot(c):
@@ -582,7 +582,7 @@ proc markRoots(gch: var TGcHeap) =
   for s in elements(gch.cycleRoots):
     #writeCell("markRoot", s)
     inc tabSize
-    if s.color == rcPurple and s.refCount >=% rcIncrement:
+    if s.color == rcPurple and s.refcount >=% rcIncrement:
       markGray(s)
     else:
       excl(gch.cycleRoots, s)