diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-13 21:53:36 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-13 21:53:36 +0000 |
commit | de4d7aecc8d2a47b4a07eb29047a3bf3ac021115 (patch) | |
tree | 02c79e39de9d3433d7c796887fb9d97040bb49dc /py/sequence.c | |
parent | aae40ee6444db616a994c5827e5007fe19895f8d (diff) | |
parent | c5d70ba48b77508cdfc2a5e08128db375cf618d2 (diff) |
Merge pull request #343 from xbe/master
Implement str.count and add tests for it.
Diffstat (limited to 'py/sequence.c')
-rw-r--r-- | py/sequence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/sequence.c b/py/sequence.c index d3c3e3285..1723bb416 100644 --- a/py/sequence.c +++ b/py/sequence.c @@ -149,9 +149,9 @@ mp_obj_t mp_seq_index_obj(const mp_obj_t *items, uint len, uint n_args, const mp uint stop = len; if (n_args >= 3) { - start = mp_get_index(type, len, args[2]); + start = mp_get_index(type, len, args[2], true); if (n_args >= 4) { - stop = mp_get_index(type, len, args[3]); + stop = mp_get_index(type, len, args[3], true); } } |