From 103ae43f95313a82674d45a2b654528d5da89435 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 21 Aug 2017 22:03:27 +1000 Subject: [PATCH] py/objcomplex: Remove unnecessary assignment of variable. --- py/objcomplex.c | 1 - 1 file changed, 1 deletion(-) 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"); }