aboutsummaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-02-27 12:35:44 +1100
committerDamien George <damien.p.george@gmail.com>2020-02-28 10:30:34 +1100
commit17aeb43e18ca679617511c442cd7a74c363e40b9 (patch)
tree2a1029e30af540071830ebf99179744baa15b95c /py/objint_mpz.c
parent7768a8c38d7d4e6655d750dbb140558cea48e1d6 (diff)
py: Un-nest configuration #if/#endif's for selection of complex code.
Because un-nested #if's are simpler to handle with formatting tools.
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index 834e9a9bd..5c014ac23 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -184,11 +184,11 @@ mp_obj_t mp_obj_int_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_i
#if MICROPY_PY_BUILTINS_FLOAT
} else if (mp_obj_is_float(rhs_in)) {
return mp_obj_float_binary_op(op, mpz_as_float(zlhs), rhs_in);
+#endif
#if MICROPY_PY_BUILTINS_COMPLEX
} else if (mp_obj_is_type(rhs_in, &mp_type_complex)) {
return mp_obj_complex_binary_op(op, mpz_as_float(zlhs), 0, rhs_in);
#endif
-#endif
} else {
// delegate to generic function to check for extra cases
return mp_obj_int_binary_op_extra_cases(op, lhs_in, rhs_in);