Browse Source

Fix a minor compiler error in VisualStudio with CMake

tags/v0.2.18^2
theoractice 9 years ago
parent
commit
fc3a558515
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common_x86.h

+ 1
- 1
common_x86.h 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


Loading…
Cancel
Save