Skip to content

ambiguous struct fields in HPyType_Spec #454

@mattip

Description

@mattip

Currently HPyType_Spec uses HPyType_BuiltinShape which is an enum and long in its typedef

unsigned long flags;

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions