summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-11-13 02:24:08 +0200
committerZahary Karadjov <zahary@gmail.com>2013-11-13 02:24:08 +0200
commit31dd66acbf53b619c6b15a49fe80bffa4a44b3fd (patch)
treea90b58eef9330f96e893192c3208e902c4df86d9 /lib/system
parent9061b8961eb5cefd31eba9314a5932f35f524eac (diff)
downloadNim-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.nim3
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,