-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Currently HPyType_Spec uses HPyType_BuiltinShape which is an enum and long in its typedef
hpy/hpy/devel/include/hpy/hpytype.h
Line 102 in f611473
| unsigned long flags; |
hpy/hpy/devel/include/hpy/hpytype.h
Line 131 in f611473
| HPyType_BuiltinShape builtin_shape; |
These are ambiguous since enum does not have to be int and long is 4 bytes on windows but 8 everywhere else.
Also the struct is not aligned, it needs padding around the HPyType_BuiltinShape to align on 8 bytes.
Metadata
Metadata
Assignees
Labels
No labels