py/objcomplex: Remove unnecessary assignment of variable.

This commit is contained in:
Damien George 2017-08-21 22:03:27 +10:00
parent ad6aae13a4
commit 103ae43f95
1 changed files with 0 additions and 1 deletions

View File

@ -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 (abs1 == 0) {
if (rhs_imag == 0 && rhs_real >= 0) { if (rhs_imag == 0 && rhs_real >= 0) {
lhs_real = (rhs_real == 0); lhs_real = (rhs_real == 0);
rhs_real = 0;
} else { } else {
mp_raise_msg(&mp_type_ZeroDivisionError, "0.0 to a complex power"); mp_raise_msg(&mp_type_ZeroDivisionError, "0.0 to a complex power");
} }