summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-04 01:06:10 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-04 01:06:10 +0000
commitc8d1384fc0c7aafa5dee3445ece20f4e43dfa9c1 (patch)
tree5e5c5c2a5cd5b4374996ab60e53ecaabf76c2dde /py
parentb95d90b2f37e00a39a7cca46c24c9d496bb1e342 (diff)
downloadmicropython-c8d1384fc0c7aafa5dee3445ece20f4e43dfa9c1.tar.gz
micropython-c8d1384fc0c7aafa5dee3445ece20f4e43dfa9c1.zip
Fix int -> machine_int_t; add print to slice test.
Diffstat (limited to 'py')
-rw-r--r--py/objstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 6a0721d45f..59547e3cd6 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -35,7 +35,7 @@ mp_obj_t str_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
return mp_obj_new_int(lhs_str[mp_obj_get_int(rhs_in)]);
#if MICROPY_ENABLE_SLICE
} else if (MP_OBJ_IS_TYPE(rhs_in, &slice_type)) {
- int start, stop, step;
+ machine_int_t start, stop, step;
mp_obj_slice_get(rhs_in, &start, &stop, &step);
assert(step == 1);
int len = strlen(lhs_str);