From b16d33859226b01b189db5ec01df40d3fd833fca Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 16 Jun 2014 10:49:50 -0700 Subject: [PATCH] cmThread.c : Fixed bug in cmThPtrCAS() where #ifdef OS_VER_10_5 was used instead of #ifdef OS_64. --- cmThread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmThread.c b/cmThread.c index adbb75c..87f10b2 100644 --- a/cmThread.c +++ b/cmThread.c @@ -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 }