]> granicus.if.org Git - python/commitdiff
Style nit.
authorMark Dickinson <dickinsm@gmail.com>
Tue, 6 Jul 2010 15:11:44 +0000 (15:11 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 6 Jul 2010 15:11:44 +0000 (15:11 +0000)
Objects/floatobject.c

index 2b61d2ccda0bb29c02bb19a609779972b81d1270..c75720354fdf6971cbc518da10ce199d25b93c8a 100644 (file)
@@ -1422,7 +1422,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
                     round_up = 1;
                     break;
                 }
-        if (round_up == 1) {
+        if (round_up) {
             x += 2*half_eps;
             if (top_exp == DBL_MAX_EXP &&
                 x == ldexp((double)(2*half_eps), DBL_MANT_DIG))