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

mprintf: reject two kinds of precision for the same argument #9754

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 17, 2022

An input like "%.*1$.9999d" would first use the precision taken as an argument and then the precision specified in the string, which is confusing and wrong. pass1 will now instead return error on this double use.

Adjusted unit test 1398 to verify

Reported-by: Peter Goodman

An input like "%.*1$.9999d" would first use the precision taken as an
argument *and* then the precision specified in the string, which is
confusing and wrong. pass1 will now instead return error on this double
use.

Adjusted unit test 1398 to verify

Reported-by: Peter Goodman
@bagder bagder added the tidy-up label Oct 17, 2022
@bagder bagder closed this in dae8480 Oct 18, 2022
@bagder bagder deleted the bagder/mprintf-precision branch October 18, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant