summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-07-08 21:31:09 +1000
committerDamien George <damien.p.george@gmail.com>2018-07-08 21:31:09 +1000
commita6ea6b08bc6b27fa4776e709537ce13a9950733e (patch)
tree9ab2671f2b8482ad699eab9d6368066061ae598c /py/objmodule.c
parent106e594580d4de2d680c7ceefc7a1c331b4de3dd (diff)
downloadmicropython-a6ea6b08bc6b27fa4776e709537ce13a9950733e.tar.gz
micropython-a6ea6b08bc6b27fa4776e709537ce13a9950733e.zip
py: Simplify some cases of accessing the map of module and type dict.
mp_obj_module_get_globals() returns a mp_obj_dict_t*, and type->locals_dict is a mp_obj_dict_t*, so access the map entry of the dict directly instead of needing to cast this mp_obj_dict_t* up to an object and then calling the mp_obj_dict_get_map() helper function.
Diffstat (limited to 'py/objmodule.c')
0 files changed, 0 insertions, 0 deletions