Merge pull request #10954 from cooldome/atomicInc_regression

fixes regression #10953
This commit is contained in:
cooldome 2019-04-04 11:42:08 +01:00 • committed by GitHub
commit 8546393ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: