diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-11-13 02:24:08 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-11-13 02:24:08 +0200 |
commit | 31dd66acbf53b619c6b15a49fe80bffa4a44b3fd (patch) | |
tree | a90b58eef9330f96e893192c3208e902c4df86d9 /lib/system | |
parent | 9061b8961eb5cefd31eba9314a5932f35f524eac (diff) | |
download | Nim-31dd66acbf53b619c6b15a49fe80bffa4a44b3fd.tar.gz |
support for multiple test variables and var qualifiers in user-defined type classes
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/gc2.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/system/gc2.nim b/lib/system/gc2.nim index 05c291371..31c99a601 100644 --- a/lib/system/gc2.nim +++ b/lib/system/gc2.nim @@ -387,8 +387,7 @@ template `--`(rc: TRefCount): expr = rc <% rcIncrement template `--` (rc: TRefCount, heapType: THeapType): expr = - (when heapType == SharedHeap: atomicDec(rc, rcIncrement) <% rcIncrement - else: --rc) + (when heapType == SharedHeap: atomicDec(rc, rcIncrement) <% rcIncrement else: --rc) template doDecRef(cc: PCell, heapType = LocalHeap, |