diff options
author | Andrii Riabushenko <cdome@bk.ru> | 2019-04-03 15:06:26 +0100 |
---|---|---|
committer | Andrii Riabushenko <cdome@bk.ru> | 2019-04-03 15:06:26 +0100 |
commit | ad1c6fe8b9714516ad4816b211e12cd05c115b92 (patch) | |
tree | aebe5cd0ca998d5130098ba8e0e6dbe63fc9d51d /lib | |
parent | dc2986789b703300ac0680a10004f77453b146c3 (diff) | |
download | Nim-ad1c6fe8b9714516ad4816b211e12cd05c115b92.tar.gz |
fixes #10953
Diffstat (limited to 'lib')
-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 b41b4009a..9111c072a 100644 --- a/lib/system/atomics.nim +++ b/lib/system/atomics.nim @@ -171,7 +171,7 @@ elif defined(vcc) and hasThreadSupport: header: "<intrin.h>".} else: proc addAndFetch*(p: ptr int, val: int): int {. - importcpp: "_InterlockedExchangeAdd(reinterpret_cast<LONG volatile *>(#), static_cast<LONG>(#))", + importcpp: "_InterlockedExchangeAdd(reinterpret_cast<long volatile *>(#), static_cast<long>(#))", header: "<intrin.h>".} else: when sizeof(int) == 8: |