From 223eb358c45fde85d1c8a3bd1584aa36c4f71dce Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 23 Apr 2024 09:29:28 -0700 Subject: [PATCH] Import compiler warning fix from Musl --- libc/tinymath/sqrtl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/tinymath/sqrtl.c b/libc/tinymath/sqrtl.c index fa3c2c41c..36384adbb 100644 --- a/libc/tinymath/sqrtl.c +++ b/libc/tinymath/sqrtl.c @@ -233,7 +233,7 @@ long double sqrtl(long double x) top = (top + 0x3fff) >> 1; /* r ~ 1/sqrt(m) */ - static const uint64_t three = 0xc0000000; + const uint64_t three = 0xc0000000; uint64_t r, s, d, u, i; i = (ix.hi >> 42) % 128; r = (uint32_t)__rsqrt_tab[i] << 16; @@ -255,7 +255,7 @@ long double sqrtl(long double x) r = mul64(u, r) << 1; /* |r sqrt(m) - 1| < 0x1.c001p-59, switch to 128bit */ - static const u128 threel = {.hi=three<<32, .lo=0}; + const u128 threel = {.hi=three<<32, .lo=0}; u128 rl, sl, dl, ul; rl.hi = r; rl.lo = 0;