diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-09 21:39:36 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-09 21:43:28 +0200 |
commit | d4a874b81e29008713e9de2dd623e62c9f2aa5dc (patch) | |
tree | c1679f6007df97f042d6fbd948aa81cba0e5d5b1 /py | |
parent | 5a4a2b1db38199151ccdf30ade5be6020b8c0a3b (diff) | |
download | micropython-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')
0 files changed, 0 insertions, 0 deletions