summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/dtoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index 81221a5b35..c8985bc980 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -1141,7 +1141,7 @@ sulp(U *x, BCinfo *bc)
{
U u;
- if (bc->scale && 2*P + 1 - ((word0(x) & Exp_mask) >> Exp_shift) > 0) {
+ if (bc->scale && 2*P + 1 > (int)((word0(x) & Exp_mask) >> Exp_shift)) {
/* rv/2^bc->scale is subnormal */
word0(&u) = (P+2)*Exp_msk1;
word1(&u) = 0;