From 7024bb800ccf2c3e075c5dd605b8384a399ffe53 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 4 Aug 2019 23:54:29 +0200 Subject: [PATCH] fixes #11844 --- lib/core/runtime_v2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: