summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-08-04 23:54:29 +0200
committerAraq <rumpf_a@web.de>2019-08-04 23:54:29 +0200
commit7024bb800ccf2c3e075c5dd605b8384a399ffe53 (patch)
tree7a12a2a8bccb7bb63eb339eb0becff6e40a5f33f /lib/core
parent65d1140d116d5952757712b2babe42655bc7ed11 (diff)
downloadNim-7024bb800ccf2c3e075c5dd605b8384a399ffe53.tar.gz
fixes #11844
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/runtime_v2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/runtime_v2.nim b/lib/core/runtime_v2.nim
index 149c426e1..5c9554ad8 100644
--- a/lib/core/runtime_v2.nim
+++ b/lib/core/runtime_v2.nim
@@ -84,7 +84,7 @@ proc nimRawDispose(p: pointer) {.compilerRtl.} =
       dealloc(p -! sizeof(RefHeader))
     if allocs > 0:
       when hasThreadSupport:
-        atomicDec allocs
+        discard atomicDec(allocs)
       else:
         dec allocs
     else: