py/objcomplex: Remove unnecessary assignment of variable.
This commit is contained in:
parent
ad6aae13a4
commit
103ae43f95
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue