@@ -54,7 +54,7 @@ class FmodTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
5454
5555 // fmod (+inf, y) == aNaN plus invalid exception.
5656 TEST_SPECIAL (inf, 3.0 , aNaN, true , FE_INVALID);
57- TEST_SPECIAL (inf, -1 .1L , aNaN, true , FE_INVALID);
57+ TEST_SPECIAL (inf, static_cast <T>( -1 .1L ) , aNaN, true , FE_INVALID);
5858 TEST_SPECIAL (inf, 0.0 , aNaN, true , FE_INVALID);
5959 TEST_SPECIAL (inf, neg_zero, aNaN, true , FE_INVALID);
6060 TEST_SPECIAL (inf, min_denormal, aNaN, true , FE_INVALID);
@@ -65,7 +65,7 @@ class FmodTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
6565
6666 // fmod (-inf, y) == aNaN plus invalid exception.
6767 TEST_SPECIAL (neg_inf, 3.0 , aNaN, true , FE_INVALID);
68- TEST_SPECIAL (neg_inf, -1 .1L , aNaN, true , FE_INVALID);
68+ TEST_SPECIAL (neg_inf, static_cast <T>( -1 .1L ) , aNaN, true , FE_INVALID);
6969 TEST_SPECIAL (neg_inf, 0.0 , aNaN, true , FE_INVALID);
7070 TEST_SPECIAL (neg_inf, neg_zero, aNaN, true , FE_INVALID);
7171 TEST_SPECIAL (neg_inf, min_denormal, aNaN, true , FE_INVALID);
@@ -76,7 +76,7 @@ class FmodTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
7676
7777 // fmod (x, +0) == aNaN plus invalid exception.
7878 TEST_SPECIAL (3.0 , 0.0 , aNaN, true , FE_INVALID);
79- TEST_SPECIAL (-1 .1L , 0.0 , aNaN, true , FE_INVALID);
79+ TEST_SPECIAL (static_cast <T>( -1 .1L ) , 0.0 , aNaN, true , FE_INVALID);
8080 TEST_SPECIAL (0.0 , 0.0 , aNaN, true , FE_INVALID);
8181 TEST_SPECIAL (neg_zero, 0.0 , aNaN, true , FE_INVALID);
8282 TEST_SPECIAL (min_denormal, 0.0 , aNaN, true , FE_INVALID);
@@ -85,7 +85,7 @@ class FmodTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
8585
8686 // fmod (x, -0) == aNaN plus invalid exception.
8787 TEST_SPECIAL (3.0 , neg_zero, aNaN, true , FE_INVALID);
88- TEST_SPECIAL (-1 .1L , neg_zero, aNaN, true , FE_INVALID);
88+ TEST_SPECIAL (static_cast <T>( -1 .1L ) , neg_zero, aNaN, true , FE_INVALID);
8989 TEST_SPECIAL (0.0 , neg_zero, aNaN, true , FE_INVALID);
9090 TEST_SPECIAL (neg_zero, neg_zero, aNaN, true , FE_INVALID);
9191 TEST_SPECIAL (min_denormal, neg_zero, aNaN, true , FE_INVALID);
0 commit comments