Skip to content

Commit 141f155

Browse files
committed
[libc][math] Refactor initialization of FPBits-typed variables
1 parent a66079a commit 141f155

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libc/test/src/math/smoke/ILogbTest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class LlvmLibcILogbTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
8181
static_cast<StorageType>((MAX_SUBNORMAL - MIN_SUBNORMAL) / COUNT),
8282
StorageType(1));
8383
for (StorageType v = MIN_SUBNORMAL; v <= MAX_SUBNORMAL; v += STEP) {
84-
FPBits x_bits = FPBits(v);
84+
FPBits x_bits(v);
8585
if (x_bits.is_zero() || x_bits.is_inf_or_nan())
8686
continue;
8787

@@ -101,7 +101,7 @@ class LlvmLibcILogbTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
101101
static_cast<StorageType>((MAX_NORMAL - MIN_NORMAL) / COUNT),
102102
StorageType(1));
103103
for (StorageType v = MIN_NORMAL; v <= MAX_NORMAL; v += STEP) {
104-
FPBits x_bits = FPBits(v);
104+
FPBits x_bits(v);
105105
if (x_bits.is_zero() || x_bits.is_inf_or_nan())
106106
continue;
107107

libc/test/src/math/smoke/LogbTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class LogbTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
7575
static_cast<StorageType>(STORAGE_MAX / COUNT), StorageType(1));
7676
StorageType v = 0;
7777
for (int i = 0; i <= COUNT; ++i, v += STEP) {
78-
FPBits x_bits = FPBits(v);
78+
FPBits x_bits(v);
7979
if (x_bits.is_zero() || x_bits.is_inf_or_nan())
8080
continue;
8181

0 commit comments

Comments
 (0)