Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
69922c60
Commit
69922c60
authored
Mar 20, 2015
by
Paul Sokolovsky
Browse files
objlist: list_reverse(): Fix typesafety error.
parent
d478fc75
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objlist.c
View file @
69922c60
...
@@ -405,7 +405,7 @@ STATIC mp_obj_t list_reverse(mp_obj_t self_in) {
...
@@ -405,7 +405,7 @@ STATIC mp_obj_t list_reverse(mp_obj_t self_in) {
mp_int_t
len
=
self
->
len
;
mp_int_t
len
=
self
->
len
;
for
(
mp_int_t
i
=
0
;
i
<
len
/
2
;
i
++
)
{
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
[
i
]
=
self
->
items
[
len
-
i
-
1
];
self
->
items
[
len
-
i
-
1
]
=
a
;
self
->
items
[
len
-
i
-
1
]
=
a
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment