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

Fix error() formatting in rgbasm #773

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

daid
Copy link
Contributor

@daid daid commented Mar 1, 2021

The asm error() function did not have a format attribute, and was called a few times with wrong parameters. Hasn't caused real issues as those errors are hard to impossible to trigger.

@Rangi42 Rangi42 requested a review from ISSOtm March 1, 2021 20:50
src/asm/parser.y Outdated Show resolved Hide resolved
src/asm/symbol.c Outdated Show resolved Hide resolved
src/asm/symbol.c Show resolved Hide resolved
@daid daid force-pushed the FixExceptionalMessagesPrintfWarnings branch from b4de6cf to 516f756 Compare March 2, 2021 12:55
…led a few times with wrong parameters.

Fix the call to error() from perser.y
Fix size parameter of %.*s format being an int... bonkers standard.
Report the number of arguments required and provided on a strfmt mismatch
Make the STRFMT test match the new message
Add an assert to check for a very unlikely case
@Rangi42 Rangi42 added this to the v0.5.0 milestone Mar 2, 2021
@ISSOtm ISSOtm merged commit 5d6e067 into gbdev:master Mar 2, 2021
@daid daid deleted the FixExceptionalMessagesPrintfWarnings branch March 2, 2021 17:08
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.

3 participants