summaryrefslogtreecommitdiffstatshomepage
path: root/py/objlist.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-09 21:39:36 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-09 21:43:28 +0200
commitd4a874b81e29008713e9de2dd623e62c9f2aa5dc (patch)
treec1679f6007df97f042d6fbd948aa81cba0e5d5b1 /py/objlist.c
parent5a4a2b1db38199151ccdf30ade5be6020b8c0a3b (diff)
downloadmicropython-d4a874b81e29008713e9de2dd623e62c9f2aa5dc.tar.gz
micropython-d4a874b81e29008713e9de2dd623e62c9f2aa5dc.zip
extmod/moductypes: sizeof operation depends on layout type of structure.
Previously, sizeof() blindly assumed LAYOUT_NATIVE and tried to align size even for packed LAYOUT_LITTLE_ENDIAN & LAYOUT_BIG_ENDIAN. As sizeof() is implemented on a strucuture descriptor dictionary (not an structure object), resolving this required passing layout type around.
Diffstat (limited to 'py/objlist.c')
0 files changed, 0 insertions, 0 deletions