Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7ce6a8fe
Commit
7ce6a8fe
authored
Apr 27, 2014
by
Paul Sokolovsky
Browse files
objlist: We no longer need to assert on mem alloc results.
They either succeed or raise exception.
parent
48bf6b3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objlist.c
View file @
7ce6a8fe
...
...
@@ -162,7 +162,6 @@ mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg) {
mp_obj_list_t
*
self
=
self_in
;
if
(
self
->
len
>=
self
->
alloc
)
{
self
->
items
=
m_renew
(
mp_obj_t
,
self
->
items
,
self
->
alloc
,
self
->
alloc
*
2
);
assert
(
self
->
items
);
self
->
alloc
*=
2
;
}
self
->
items
[
self
->
len
++
]
=
arg
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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