Fix MSVC compiler errors with the atomics

This commit is contained in:
Pavel Krajcevski 2013-03-06 19:57:20 -05:00
parent 342614a6ec
commit bacf327246

View file

@ -1538,10 +1538,10 @@ namespace BC7C
} }
static uint32 FetchAndAdd(uint32 *x) { static uint32 FetchAndAdd(uint32 *x) {
return InterlockedIncrement(x); return InterlockedIncrement(x)-1;
} }
static void ResetTestAndSet(uint *x) { static void ResetTestAndSet(uint32 *x) {
*x = 0; *x = 0;
} }
#elif defined HAS_GCC_ATOMICS #elif defined HAS_GCC_ATOMICS