summaryrefslogtreecommitdiff
path: root/py/objtuple.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-13 21:53:36 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-13 21:53:36 +0000
commitde4d7aecc8d2a47b4a07eb29047a3bf3ac021115 (patch)
tree02c79e39de9d3433d7c796887fb9d97040bb49dc /py/objtuple.c
parentaae40ee6444db616a994c5827e5007fe19895f8d (diff)
parentc5d70ba48b77508cdfc2a5e08128db375cf618d2 (diff)
Merge pull request #343 from xbe/master
Implement str.count and add tests for it.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r--py/objtuple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objtuple.c b/py/objtuple.c
index d39b36d9f..827441f70 100644
--- a/py/objtuple.c
+++ b/py/objtuple.c
@@ -111,7 +111,7 @@ mp_obj_t tuple_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
return res;
}
#endif
- uint index = mp_get_index(o->base.type, o->len, rhs);
+ uint index = mp_get_index(o->base.type, o->len, rhs, false);
return o->items[index];
}
case RT_BINARY_OP_ADD: