From b0b3a2500acc78149ad18620b7ca9bf6c18ff372 Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Mon, 13 Apr 2015 20:35:37 -0700 Subject: The importc for atomicCompareExchange is incorrectly defined. The .importc: was referring to __atomic_compare_exchange_n this corrects it to be __atomic_compare_exchange. --- lib/system/atomics.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/atomics.nim b/lib/system/atomics.nim index 300fa85f3..c97d2fc7f 100644 --- a/lib/system/atomics.nim +++ b/lib/system/atomics.nim @@ -87,7 +87,7 @@ when someGcc and hasThreadSupport: proc atomicCompareExchange*[T: TAtomType](p, expected, desired: ptr T, weak: bool, success_memmodel: AtomMemModel, failure_memmodel: AtomMemModel): bool {. - importc: "__atomic_compare_exchange_n ", nodecl.} + importc: "__atomic_compare_exchange", nodecl.} ## This proc implements the generic version of atomic_compare_exchange. ## The proc is virtually identical to atomic_compare_exchange_n, except the desired ## value is also a pointer. -- cgit 1.4.1-2-gfad0