1 parent ad6aae1 commit 103ae43Copy full SHA for 103ae43
1 file changed
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
229
if (abs1 == 0) {
230
if (rhs_imag == 0 && rhs_real >= 0) {
231
lhs_real = (rhs_real == 0);
232
- rhs_real = 0;
233
} else {
234
mp_raise_msg(&mp_type_ZeroDivisionError, "0.0 to a complex power");
235
}
0 commit comments