From: Mark Dickinson Date: Sun, 2 Feb 2020 11:37:02 +0000 (+0000) Subject: Fix 5-space indentation and trailing whitespace (GH-18311) X-Git-Tag: v3.9.0a4~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be8147bdc6111a225ec284a4514277304726c3d0;p=thirdparty%2FPython%2Fcpython.git Fix 5-space indentation and trailing whitespace (GH-18311) --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 89f60b65cd55..ab486d4ee3d2 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 *