Skip to content

Commit fb56ace

Browse files
committed
Fix shift tests
1 parent cadcd8f commit fb56ace

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_xsimd_api.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ struct xsimd_api_integral_types_functions
358358
value_type val1(shift);
359359
value_type r = val0 << val1;
360360
value_type ir = val0 << shift;
361-
value_type cr = xsimd::bitwise_lshift<shift>(val0);
361+
T cr = xsimd::bitwise_lshift<shift>(T(val0));
362362
CHECK_EQ(extract(xsimd::bitwise_lshift(T(val0), T(val1))), r);
363363
CHECK_EQ(extract(ir), r);
364364
CHECK_EQ(extract(cr), r);
@@ -371,7 +371,7 @@ struct xsimd_api_integral_types_functions
371371
value_type val1(shift);
372372
value_type r = val0 >> val1;
373373
value_type ir = val0 >> shift;
374-
value_type cr = xsimd::bitwise_rshift<shift>(val0);
374+
T cr = xsimd::bitwise_rshift<shift>(val0);
375375
CHECK_EQ(extract(xsimd::bitwise_rshift(T(val0), T(val1))), r);
376376
CHECK_EQ(extract(ir), r);
377377
CHECK_EQ(extract(cr), r);
@@ -391,7 +391,7 @@ struct xsimd_api_integral_types_functions
391391
value_type val0(12);
392392
value_type val1(count);
393393
value_type r = (val0 << val1) | (val0 >> (N - val1));
394-
value_type cr = xsimd::rotl<count>(val0);
394+
T cr = xsimd::rotl<count>(val0);
395395
CHECK_EQ(extract(xsimd::rotl(T(val0), T(val1))), r);
396396
CHECK_EQ(extract(cr), r);
397397
}
@@ -403,7 +403,7 @@ struct xsimd_api_integral_types_functions
403403
value_type val0(12);
404404
value_type val1(count);
405405
value_type r = (val0 >> val1) | (val0 << (N - val1));
406-
value_type cr = xsimd::rotr<3>(val0);
406+
T cr = xsimd::rotr<3>(val0);
407407
CHECK_EQ(extract(xsimd::rotr(T(val0), T(val1))), r);
408408
CHECK_EQ(extract(cr), r);
409409
}

0 commit comments

Comments
 (0)