Index: crosstest/test_sync_atomic.cpp |
diff --git a/crosstest/test_sync_atomic.cpp b/crosstest/test_sync_atomic.cpp |
index d1578ebc3de85a4edd0d4433ff6d68083e571ac2..432002acc836b4bf1da698b0081ea8c0738a908d 100644 |
--- a/crosstest/test_sync_atomic.cpp |
+++ b/crosstest/test_sync_atomic.cpp |
@@ -47,7 +47,8 @@ |
if (fetch) { \ |
return __sync_fetch_and_##inst(ptr, 42); \ |
} else { \ |
- return __sync_##inst##_and_fetch(ptr, 99); \ |
+ const type value = static_cast<type>(0xaaaaaaaaaaaaaaaaull); \ |
+ return __sync_##inst##_and_fetch(ptr, value); \ |
} \ |
} |