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

types: fix RE_ARG_SIZE default argument promotions #924

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Aug 30, 2023

Variable argument lists are promoted to different types in C (default argument promotions).

Type promoted type
char, signed char, short int
unsigned char, unsigned short unsigned int
float double
bool (char) int

This PR fixes the sizes and improves size check

Variable argument lists are promoted to different types in C (default
argument promotions).

char, signed char, short -> int
unsigned char, unsigned short -> int
float -> double
bool -> char -> int

This PR fixes the sizes and improves size check
@sreimers sreimers merged commit 2905f4f into main Aug 30, 2023
@sreimers sreimers deleted the fix_variadic_types branch August 30, 2023 14:48
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

Successfully merging this pull request may close these issues.

1 participant