summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-07-06 15:11:44 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-07-06 15:11:44 (GMT)
commit21a1f734fbc4216db32f5b141160a15e5dd941b5 (patch)
treea0ff0ee3c826f28a69e602bcdb18e4985a06a120 /Objects
parentc15dfd63b33ec840c902edabf23513bb0ef3a13d (diff)
downloadcpython-21a1f734fbc4216db32f5b141160a15e5dd941b5.zip
cpython-21a1f734fbc4216db32f5b141160a15e5dd941b5.tar.gz
cpython-21a1f734fbc4216db32f5b141160a15e5dd941b5.tar.bz2
Style nit.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 2b61d2c..c757203 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -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))