Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum Size #14

Open
rweijnen opened this issue Jun 25, 2019 · 0 comments
Open

Enum Size #14

rweijnen opened this issue Jun 25, 2019 · 0 comments

Comments

@rweijnen
Copy link

In Delphi an enum is by default 2 bytes in size whereas in C the default is 4 bytes. This could lead to errors when passing an enum to a function or an alignment error when using an enum in a record/struct.

I would suggest to add {$MINENUMSIZE 4}

See also http://docwiki.embarcadero.com/RADStudio/Rio/en/Minimum_enumeration_size_(Delphi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant