diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-07 17:51:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-07 17:51:03 +0300 |
commit | 0edf2fc1289dd4b85eda3697355912de35cbbc49 (patch) | |
tree | a37a6242ee0dc15e6216dd8a362c82869ee5ae5f /source/blender | |
parent | dad3de89dcfc809078a73b607033e4afba7a4cc0 (diff) |
BLI: Correct spin lock definition
The MSVC atomic function is defined for an unsigned type.
Not sure why this became an issue after switch to TBB by default,
maybe some CFLAGS changed to be more strict after that.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_threads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 6f810144a48..920a0a8f650 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -107,7 +107,7 @@ typedef uint32_t SpinLock; #elif defined(__APPLE__) typedef ThreadMutex SpinLock; #elif defined(_MSC_VER) -typedef volatile int SpinLock; +typedef volatile unsigned int SpinLock; #else typedef pthread_spinlock_t SpinLock; #endif |