cmThread.c : Fixed bug in cmThPtrCAS() where #ifdef OS_VER_10_5 was used

instead of #ifdef OS_64.
This commit is contained in:
kevin 2014-06-16 10:49:50 -07:00
parent 51a0d5c006
commit b16d338592

View File

@ -1120,10 +1120,10 @@ bool cmThPtrCAS( void* addr, void* old, void* neww )
#endif
#ifdef OS_LINUX
#ifdef OSX_VER_10_5
return __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww);
#else
#ifdef OS_64
return __sync_bool_compare_and_swap((long long*)addr, (long long)old, (long long)neww);
#else
return __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww);
#endif
#endif
}