From 6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 21 May 2014 19:42:43 +0100 Subject: py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. See issue #608 for justification. --- py/objfloat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/objfloat.c') diff --git a/py/objfloat.c b/py/objfloat.c index e27942143..6732f3121 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -96,7 +96,7 @@ STATIC mp_obj_t float_unary_op(int op, mp_obj_t o_in) { case MP_UNARY_OP_BOOL: return MP_BOOL(o->value != 0); case MP_UNARY_OP_POSITIVE: return o_in; case MP_UNARY_OP_NEGATIVE: return mp_obj_new_float(-o->value); - default: return MP_OBJ_NOT_SUPPORTED; + default: return MP_OBJ_NULL; // op not supported } } @@ -165,7 +165,7 @@ mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs_in) { case MP_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); default: - return MP_OBJ_NOT_SUPPORTED; + return MP_OBJ_NULL; // op not supported } return mp_obj_new_float(lhs_val); } -- cgit v1.2.3