summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/objcomplex.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index f945f35608..55627afea2 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -229,7 +229,6 @@ mp_obj_t mp_obj_complex_binary_op(mp_uint_t op, mp_float_t lhs_real, mp_float_t
if (abs1 == 0) {
if (rhs_imag == 0 && rhs_real >= 0) {
lhs_real = (rhs_real == 0);
- rhs_real = 0;
} else {
mp_raise_msg(&mp_type_ZeroDivisionError, "0.0 to a complex power");
}