summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-21 22:03:27 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-21 22:03:27 +1000
commit103ae43f95313a82674d45a2b654528d5da89435 (patch)
tree0ae2970b568e75c974f38a1a9c8155425b25b363 /py/objcomplex.c
parentad6aae13a4f633cb95d6e6149d839448e4702c2a (diff)
downloadmicropython-103ae43f95313a82674d45a2b654528d5da89435.tar.gz
micropython-103ae43f95313a82674d45a2b654528d5da89435.zip
py/objcomplex: Remove unnecessary assignment of variable.
Diffstat (limited to 'py/objcomplex.c')
-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");
}