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

Parser: Coerce array members properly from strings #545

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

danielsan901998
Copy link
Contributor

resolve #537
coerceArrayInit was not used in findScalarInitializer, using only a type equality, so instead of coercing the string it only checked if the type was equal, and because the length was different the array was rejected and istead used implicit conversion to char from pointer.

@Vexu Vexu merged commit 5058f52 into Vexu:master Nov 9, 2023
3 checks passed
@Vexu
Copy link
Owner

Vexu commented Nov 9, 2023

Wonderful, Thanks!

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.

Compound literals do not initialize array members properly from strings
2 participants