diff options
author | Wink Saville <wink@saville.com> | 2015-04-13 20:35:37 -0700 |
---|---|---|
committer | Wink Saville <wink@saville.com> | 2015-04-13 20:39:01 -0700 |
commit | b0b3a2500acc78149ad18620b7ca9bf6c18ff372 (patch) | |
tree | b1855c73c5193472324606f06347c362c5503b39 /lib/system/atomics.nim | |
parent | 6fb372d96bade748aa6cb3484fef2118b4585f26 (diff) | |
download | Nim-b0b3a2500acc78149ad18620b7ca9bf6c18ff372.tar.gz |
The importc for atomicCompareExchange is incorrectly defined.
The .importc: was referring to __atomic_compare_exchange_n this corrects it to be __atomic_compare_exchange.
Diffstat (limited to 'lib/system/atomics.nim')
-rw-r--r-- | lib/system/atomics.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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. |