From b8a053aeb1bec41af11c9937de3c81b7b34c7566 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 11 Apr 2014 10:10:37 +0100 Subject: py: Implement float and complex == and !=. Addresses issue #462. --- py/objfloat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'py/objfloat.c') diff --git a/py/objfloat.c b/py/objfloat.c index 1f96ac18e..3f4a68093 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -132,6 +132,7 @@ check_zero_division: case MP_BINARY_OP_INPLACE_POWER: lhs_val = MICROPY_FLOAT_C_FUN(pow)(lhs_val, rhs_val); break; case MP_BINARY_OP_LESS: return MP_BOOL(lhs_val < rhs_val); case MP_BINARY_OP_MORE: return MP_BOOL(lhs_val > rhs_val); + case MP_BINARY_OP_EQUAL: return MP_BOOL(lhs_val == rhs_val); case MP_BINARY_OP_LESS_EQUAL: return MP_BOOL(lhs_val <= rhs_val); case MP_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); -- cgit v1.2.3