Skip to content

Commit 591eb23

Browse files
committed
Fix a couple variable shadowing varnings.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
1 parent 943216d commit 591eb23

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/libm_dbl/pow.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ double pow(double x, double y)
125125
else if (iy >= 0x3ff00000) {
126126
k = (iy>>20) - 0x3ff; /* exponent */
127127
if (k > 20) {
128-
uint32_t j = ly>>(52-k);
129-
if ((j<<(52-k)) == ly)
130-
yisint = 2 - (j&1);
128+
uint32_t j2 = ly>>(52-k);
129+
if ((j2<<(52-k)) == ly)
130+
yisint = 2 - (j2&1);
131131
} else if (ly == 0) {
132-
uint32_t j = iy>>(20-k);
133-
if ((j<<(20-k)) == iy)
134-
yisint = 2 - (j&1);
132+
uint32_t j2 = iy>>(20-k);
133+
if ((j2<<(20-k)) == (uint32_t)iy)
134+
yisint = 2 - (j2&1);
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)