Browse Source

objlist: list_reverse(): Fix typesafety error.

pull/1163/merge
Paul Sokolovsky 10 years ago
parent
commit
69922c602c
  1. 2
      py/objlist.c

2
py/objlist.c

@ -405,7 +405,7 @@ STATIC mp_obj_t list_reverse(mp_obj_t self_in) {
mp_int_t len = self->len;
for (mp_int_t i = 0; i < len/2; i++) {
mp_obj_t *a = self->items[i];
mp_obj_t a = self->items[i];
self->items[i] = self->items[len-i-1];
self->items[len-i-1] = a;
}

Loading…
Cancel
Save