Commit 7b888bfb authored by Stefan Krah's avatar Stefan Krah

Change style to match the surrounding code (no early returns).

parent 1544cd65
...@@ -3010,12 +3010,11 @@ convert_op_cmp(PyObject **vcmp, PyObject **wcmp, PyObject *v, PyObject *w, ...@@ -3010,12 +3010,11 @@ convert_op_cmp(PyObject **vcmp, PyObject **wcmp, PyObject *v, PyObject *w,
} }
} }
else { else {
int is_instance = PyObject_IsInstance(w, Rational); int is_rational = PyObject_IsInstance(w, Rational);
if (is_instance < 0) { if (is_rational < 0) {
*wcmp = NULL; *wcmp = NULL;
return 0;
} }
if (is_instance) { else if (is_rational > 0) {
*wcmp = numerator_as_decimal(w, context); *wcmp = numerator_as_decimal(w, context);
if (*wcmp && !mpd_isspecial(MPD(v))) { if (*wcmp && !mpd_isspecial(MPD(v))) {
*vcmp = multiply_by_denominator(v, w, context); *vcmp = multiply_by_denominator(v, w, context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment