]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix invalid cast in win32 stdatomic.h shim
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 10:27:23 +0000 (12:27 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 10:47:42 +0000 (12:47 +0200)
commit54168d55c0a44da65c61b588f40ccbdf79cc914a
treec538a827e9700831a9814f9c11060b371f85f3da
parent70318943fe141999a7b732796256f04bdbef7467
Fix invalid cast in win32 stdatomic.h shim

The InterlockedOr8() and InterlockedAnd8() first argument was cast
to (atomic_int_fast8_t) instead of (atomic_int_fast8_t *), this was
reported by MSVC as:

  warning C4024: '_InterlockedOr8': different types for formal and actual parameter 1
  warning C4024: '_InterlockedAnd8': different types for formal and actual parameter 1
lib/isc/win32/include/isc/stdatomic.h