diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2020-02-02 11:37:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 11:37:02 (GMT) |
commit | be8147bdc6111a225ec284a4514277304726c3d0 (patch) | |
tree | 2e2767b68231e2465490f2eb57903ec267a258df | |
parent | 78c7183f470b60a39ac2dd0ad1a94d49d1e0b062 (diff) | |
download | cpython-be8147bdc6111a225ec284a4514277304726c3d0.zip cpython-be8147bdc6111a225ec284a4514277304726c3d0.tar.gz cpython-be8147bdc6111a225ec284a4514277304726c3d0.tar.bz2 |
Fix 5-space indentation and trailing whitespace (GH-18311)
-rw-r--r-- | Objects/floatobject.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 89f60b6..ab486d4 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -641,7 +641,7 @@ _float_div_mod(double vx, double wx, double *floordiv, double *mod) *floordiv = floor(div); if (div - *floordiv > 0.5) { *floordiv += 1.0; - } + } } else { /* div is zero - get the same sign as the true quotient */ @@ -652,16 +652,16 @@ _float_div_mod(double vx, double wx, double *floordiv, double *mod) static PyObject * float_divmod(PyObject *v, PyObject *w) { - double vx, wx; - double mod, floordiv; - CONVERT_TO_DOUBLE(v, vx); - CONVERT_TO_DOUBLE(w, wx); - if (wx == 0.0) { - PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()"); - return NULL; - } - _float_div_mod(vx, wx, &floordiv, &mod); - return Py_BuildValue("(dd)", floordiv, mod); + double vx, wx; + double mod, floordiv; + CONVERT_TO_DOUBLE(v, vx); + CONVERT_TO_DOUBLE(w, wx); + if (wx == 0.0) { + PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()"); + return NULL; + } + _float_div_mod(vx, wx, &floordiv, &mod); + return Py_BuildValue("(dd)", floordiv, mod); } static PyObject * |