diff options
author | James Almer <jamrial@gmail.com> | 2017-04-13 18:27:20 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-13 18:27:20 -0300 |
commit | eab5d29810d5d330e0d98f78a9c5ce7dd48a103a (patch) | |
tree | 2f9605f729c30b579684aa18f4bc8c259142868a /compat/atomics/win32 | |
parent | 657c0720361499e573688384d4f6f625ef897bf8 (diff) | |
parent | 6a93b596c5c3af31b843d63013a7985ffeea354d (diff) | |
download | ffmpeg-eab5d29810d5d330e0d98f78a9c5ce7dd48a103a.tar.gz |
Merge commit '6a93b596c5c3af31b843d63013a7985ffeea354d'
* commit '6a93b596c5c3af31b843d63013a7985ffeea354d':
compat/atomics: add typecasts in atomic_compare_exchange_strong()
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'compat/atomics/win32')
-rw-r--r-- | compat/atomics/win32/stdatomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/atomics/win32/stdatomic.h b/compat/atomics/win32/stdatomic.h index 092f453978..bb8e6e7e15 100644 --- a/compat/atomics/win32/stdatomic.h +++ b/compat/atomics/win32/stdatomic.h @@ -105,7 +105,8 @@ static inline int atomic_compare_exchange_strong(intptr_t *object, intptr_t *exp intptr_t desired) { intptr_t old = *expected; - *expected = InterlockedCompareExchangePointer(object, desired, old); + *expected = (intptr_t)InterlockedCompareExchangePointer( + (PVOID *)object, (PVOID)desired, (PVOID)old); return *expected == old; } |