Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21a1f73

Browse files
committed
Style nit.
1 parent c15dfd6 commit 21a1f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
14221422
round_up = 1;
14231423
break;
14241424
}
1425-
if (round_up == 1) {
1425+
if (round_up) {
14261426
x += 2*half_eps;
14271427
if (top_exp == DBL_MAX_EXP &&
14281428
x == ldexp((double)(2*half_eps), DBL_MANT_DIG))

0 commit comments

Comments
 (0)