summaryrefslogtreecommitdiffstats
path: root/Python/dtoa.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-05 20:20:19 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-05 20:20:19 (GMT)
commit0b03f10afb301560c711b953b6ca2ecef3181eed (patch)
treed932a40f49fcfde3a3685d4e60b759fb0cdfe03f /Python/dtoa.c
parent8a478ced5585c7819668d028f6969b043a86fc58 (diff)
downloadcpython-0b03f10afb301560c711b953b6ca2ecef3181eed.zip
cpython-0b03f10afb301560c711b953b6ca2ecef3181eed.tar.gz
cpython-0b03f10afb301560c711b953b6ca2ecef3181eed.tar.bz2
Remove three unneeded variable assignments.
Found using Clang's static analyzer.
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r--Python/dtoa.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index 4b2c6c3..44dc01f 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -1382,7 +1382,6 @@ bigcomp(U *rv, const char *s0, BCinfo *bc)
Bigint *b, *d;
int b2, d2, dd, i, nd, nd0, odd, p2, p5;
- dd = 0; /* silence compiler warning about possibly unused variable */
nd = bc->nd;
nd0 = bc->nd0;
p5 = nd + bc->e0;
@@ -2362,7 +2361,7 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
/* set pointers to NULL, to silence gcc compiler warnings and make
cleanup easier on error */
- mlo = mhi = b = S = 0;
+ mlo = mhi = S = 0;
s0 = 0;
u.d = dd;
@@ -2713,8 +2712,6 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
* and for all and pass them and a shift to quorem, so it
* can do shifts and ors to compute the numerator for q.
*/
- if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0x1f))
- i = 32 - i;
#define iInc 28
i = dshift(S, s2);
b2 += i;