Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
814f17a3
Commit
814f17a3
authored
Sep 27, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/objdict: Reword TODO about inlining mp_obj_dict_get to a note.
parent
baa83a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
py/objdict.c
py/objdict.c
+1
-1
No files found.
py/objdict.c
View file @
814f17a3
...
...
@@ -160,7 +160,7 @@ STATIC mp_obj_t dict_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_
}
}
//
TODO: Make sure this is inlined in
dict_subscr() below.
//
Note: Make sure this is inlined in load part of
dict_subscr() below.
mp_obj_t
mp_obj_dict_get
(
mp_obj_t
self_in
,
mp_obj_t
index
)
{
mp_obj_dict_t
*
self
=
MP_OBJ_TO_PTR
(
self_in
);
mp_map_elem_t
*
elem
=
mp_map_lookup
(
&
self
->
map
,
index
,
MP_MAP_LOOKUP
);
...
...
Write
Preview
Markdown
is supported
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