Skip to content

Commit d369726

Browse files
committed
Remove unnecessary assignments.
1 parent ead169d commit d369726

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Python/dtoa.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,6 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
13821382
Bigint *b, *d;
13831383
int b2, d2, dd, i, nd, nd0, odd, p2, p5;
13841384

1385-
dd = 0; /* silence compiler warning about possibly unused variable */
13861385
nd = bc->nd;
13871386
nd0 = bc->nd0;
13881387
p5 = nd + bc->e0;
@@ -2362,7 +2361,7 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
23622361

23632362
/* set pointers to NULL, to silence gcc compiler warnings and make
23642363
cleanup easier on error */
2365-
mlo = mhi = b = S = 0;
2364+
mlo = mhi = S = 0;
23662365
s0 = 0;
23672366

23682367
u.d = dd;
@@ -2713,8 +2712,6 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
27132712
* and for all and pass them and a shift to quorem, so it
27142713
* can do shifts and ors to compute the numerator for q.
27152714
*/
2716-
if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0x1f))
2717-
i = 32 - i;
27182715
#define iInc 28
27192716
i = dshift(S, s2);
27202717
b2 += i;

0 commit comments

Comments
 (0)