diff options
author | Damien George <damien.p.george@gmail.com> | 2018-02-21 00:20:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-21 00:20:46 +1100 |
commit | fe3e17b026595f3386114e784b26a4a07810055c (patch) | |
tree | 63cb88a985746ad4c16987f55592622187e4b81b /py/objint.c | |
parent | 8769049e935a89daa51883755457a083a5589d4e (diff) |
py/objint: Use MP_OBJ_IS_STR_OR_BYTES macro instead of 2 separate ones.
Diffstat (limited to 'py/objint.c')
-rw-r--r-- | py/objint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.c b/py/objint.c index 4f2e610a5..59c58f2a6 100644 --- a/py/objint.c +++ b/py/objint.c @@ -378,7 +378,7 @@ mp_obj_t mp_obj_int_binary_op_extra_cases(mp_binary_op_t op, mp_obj_t lhs_in, mp // true acts as 0 return mp_binary_op(op, lhs_in, MP_OBJ_NEW_SMALL_INT(1)); } else if (op == MP_BINARY_OP_MULTIPLY) { - if (MP_OBJ_IS_STR(rhs_in) || MP_OBJ_IS_TYPE(rhs_in, &mp_type_bytes) || MP_OBJ_IS_TYPE(rhs_in, &mp_type_tuple) || MP_OBJ_IS_TYPE(rhs_in, &mp_type_list)) { + if (MP_OBJ_IS_STR_OR_BYTES(rhs_in) || MP_OBJ_IS_TYPE(rhs_in, &mp_type_tuple) || MP_OBJ_IS_TYPE(rhs_in, &mp_type_list)) { // multiply is commutative for these types, so delegate to them return mp_binary_op(op, rhs_in, lhs_in); } |