aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorPaul Sokolovsky2017-09-07 12:54:58 +0300
committerPaul Sokolovsky2017-09-07 12:54:58 +0300
commit6d4cac088eb29c7909f81121608546ca1b5e292e (patch)
treec3940741237aeb6b647cae8b483fa69d329bb196 /py/objtype.c
parent50b9329eba29a36b6948699aaea9473681d4f46b (diff)
py/objtype: Make sure mp_binary_op_method_name has full size again.
After recent refactorings to mp_binary_op_t, and make it future refactoring proof for now, at the cost of extra element in the array.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 83a9836c3..8ce593dba 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -453,7 +453,7 @@ const qstr mp_binary_op_method_name[] = {
/*
MP_BINARY_OP_IS,
*/
- [MP_BINARY_OP_EXCEPTION_MATCH] = MP_QSTR_, // not implemented, used to make sure array has full size
+ [MP_BINARY_OP_LAST] = 0, // used to make sure array has full size, TODO: FIXME
};
STATIC mp_obj_t instance_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) {