Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 165409 | Differences between
and this patch

Collapse All | Expand All

(-)src-native-new/src/transport/RASharedMemory/ossatomic.h (-5 lines)
Lines 1385-1396 Link Here
1385
            not an int
1385
            not an int
1386
   old = InterlockedCompareExchange( (LPLONG)addr, (LONG)val, (LONG)comp ) ;
1386
   old = InterlockedCompareExchange( (LPLONG)addr, (LONG)val, (LONG)comp ) ;
1387
*/
1387
*/
1388
#ifdef _WIN64
1389
   old = (OSSRegister32 *)InterlockedCompareExchange( (PLONG)&addr, (LONG)&val, (LONG)&comp ) ;
1388
   old = (OSSRegister32 *)InterlockedCompareExchange( (PLONG)&addr, (LONG)&val, (LONG)&comp ) ;
1390
#else
1391
   old = (OSSRegister32 *)InterlockedCompareExchange( (PVOID *)&addr, (PVOID)&val, (PVOID)&comp ) ;
1392
#endif
1393
1394
   return (OSSRegister32)( *old == comp ) ;
1389
   return (OSSRegister32)( *old == comp ) ;
1395
}
1390
}
1396
#ifdef _WIN64
1391
#ifdef _WIN64

Return to bug 165409