summaryrefslogtreecommitdiff
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-17 23:19:36 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-17 23:19:36 +0100
commitea8d06c39d9c94036e490b300d46f367c9eb78d9 (patch)
treece4999f60f6ca57f22e7d536593a6198ceee0695 /py/objfloat.c
parent1e935d8689f3d15dc3bd06f08f2a0305b7e1c7f4 (diff)
py: Add MP_OBJ_STOP_ITERATION and make good use of it.
Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r--py/objfloat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c
index 16d4fbfd5..804101978 100644
--- a/py/objfloat.c
+++ b/py/objfloat.c
@@ -140,7 +140,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_NULL; // op not supported
+ return MP_OBJ_NOT_SUPPORTED;
}
return mp_obj_new_float(lhs_val);
}