Skip to content

Commit be8147b

Browse files
authored
Fix 5-space indentation and trailing whitespace (GH-18311)
1 parent 78c7183 commit be8147b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Objects/floatobject.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ _float_div_mod(double vx, double wx, double *floordiv, double *mod)
641641
*floordiv = floor(div);
642642
if (div - *floordiv > 0.5) {
643643
*floordiv += 1.0;
644-
}
644+
}
645645
}
646646
else {
647647
/* 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)
652652
static PyObject *
653653
float_divmod(PyObject *v, PyObject *w)
654654
{
655-
double vx, wx;
656-
double mod, floordiv;
657-
CONVERT_TO_DOUBLE(v, vx);
658-
CONVERT_TO_DOUBLE(w, wx);
659-
if (wx == 0.0) {
660-
PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()");
661-
return NULL;
662-
}
663-
_float_div_mod(vx, wx, &floordiv, &mod);
664-
return Py_BuildValue("(dd)", floordiv, mod);
655+
double vx, wx;
656+
double mod, floordiv;
657+
CONVERT_TO_DOUBLE(v, vx);
658+
CONVERT_TO_DOUBLE(w, wx);
659+
if (wx == 0.0) {
660+
PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()");
661+
return NULL;
662+
}
663+
_float_div_mod(vx, wx, &floordiv, &mod);
664+
return Py_BuildValue("(dd)", floordiv, mod);
665665
}
666666

667667
static PyObject *

0 commit comments

Comments
 (0)