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.
This commit is contained in:
Sergey Sharybin 2020-07-07 16:51:03 +02:00
parent dad3de89dc
commit 0edf2fc128
1 changed files with 1 additions and 1 deletions

View File

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