Skip to content

Commit

Permalink
fixes #6196
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Aug 8, 2017
1 parent 37a615a commit d0365dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/atomics.nim
Expand Up @@ -172,7 +172,7 @@ elif defined(vcc) and hasThreadSupport:
header: "<intrin.h>".}
else:
proc addAndFetch*(p: ptr int, val: int): int {.
importcpp: "_InterlockedExchangeAdd(static_cast<NI volatile *>(#), #)",
importcpp: "_InterlockedExchangeAdd(reinterpret_cast<LONG volatile *>(#), static_cast<LONG>(#))",
header: "<intrin.h>".}
else:
when sizeof(int) == 8:
Expand Down

0 comments on commit d0365dc

Please sign in to comment.