forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hardware
umac
m86k MicroPython version
>>> descr = { 's': uctypes.INT32, 'c': uctypes.INT8 | 4 }
>>> uctypes.sizeof(descr)
8
However, the correct size is 6 bytes, because the alignment of INT32 is 2 bytes, not 4 bytes.
I think the uctypes assumption is that any object is aligned to its size. But this is not true in the m68k mac ABI.
Reproduction
use the above code
Expected behaviour
should print 6
Observed behaviour
prints 8
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working