Fix a minor compiler error in VisualStudio with CMake

This commit is contained in:
theoractice 2016-03-20 18:58:18 +08:00
parent c279a53ed8
commit fc3a558515
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ static void __inline blas_lock(volatile BLASULONG *address){
#if defined(_MSC_VER) && !defined(__clang__)
// use intrinsic instead of inline assembly
ret = _InterlockedExchange(address, 1);
ret = _InterlockedExchange((volatile LONG *)address, 1);
// inline assembly
/*__asm {
mov eax, address