Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
wenju-he committed Aug 14, 2024
1 parent 9e111d2 commit 4644bba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_conformance/c11_atomics/test_atomics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bool host_atomic_compare_exchange<float, float>(
{
union FloatInt {
float f;
int i;
uint32_t i;
};
FloatInt a2{ *a };
FloatInt expected2{ *expected };
Expand Down Expand Up @@ -62,7 +62,7 @@ bool host_atomic_compare_exchange<double, double>(
{
union DoubleInt64 {
double d;
int64_t i;
uint64_t i;
};
DoubleInt64 a2{ *a };
DoubleInt64 expected2{ *expected };
Expand Down Expand Up @@ -1056,6 +1056,8 @@ int test_atomic_compare_exchange_weak_generic(cl_device_id deviceID,
test_long.Execute(deviceID, context, queue, num_elements));
CBasicTestCompareWeak<HOST_ATOMIC_ULONG, HOST_ULONG> test_ulong(
TYPE_ATOMIC_ULONG, useSVM);
EXECUTE_TEST(error,
test_ulong.Execute(deviceID, context, queue, num_elements));
CBasicTestCompareWeak<HOST_ATOMIC_FLOAT, HOST_FLOAT> test_float(
TYPE_ATOMIC_FLOAT, useSVM);
EXECUTE_TEST(error,
Expand All @@ -1064,8 +1066,6 @@ int test_atomic_compare_exchange_weak_generic(cl_device_id deviceID,
TYPE_ATOMIC_DOUBLE, useSVM);
EXECUTE_TEST(error,
test_double.Execute(deviceID, context, queue, num_elements));
EXECUTE_TEST(error,
test_ulong.Execute(deviceID, context, queue, num_elements));
if (AtomicTypeInfo(TYPE_ATOMIC_SIZE_T).Size(deviceID) == 4)
{
CBasicTestCompareWeak<HOST_ATOMIC_INTPTR_T32, HOST_INTPTR_T32>
Expand Down

0 comments on commit 4644bba

Please sign in to comment.