Skip to content

Commit

Permalink
fixes #10953
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldome committed Apr 3, 2019
1 parent dc29867 commit ad1c6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/atomics.nim
Expand Up @@ -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:
Expand Down

0 comments on commit ad1c6fe

Please sign in to comment.