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

"Support" negative precision values #183

Open
eyalroz opened this issue Jul 23, 2024 · 0 comments
Open

"Support" negative precision values #183

eyalroz opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working resolved-on-develop A changeset fixing this issue has been commiutted to the development branch

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jul 23, 2024

Apparently, the C99 standard dictates that:

A negative precision argument is taken as if the precision were omitted

and while not entirely explicit about this regarding in-format-string precision, rather than separate-argument precision - that is the reasonable interpretation. So, we need to parse negative precision values... :-P

In C17, this was changed, so that the precision must be a non-negative value (which makes negative-precision values unsupported syntax and thus we can do what we want with them).

@eyalroz eyalroz added the bug Something isn't working label Jul 23, 2024
eyalroz added a commit that referenced this issue Jul 24, 2024
@eyalroz eyalroz added the resolved-on-develop A changeset fixing this issue has been commiutted to the development branch label Jul 24, 2024
eyalroz added a commit that referenced this issue Jul 24, 2024
eyalroz added a commit that referenced this issue Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved-on-develop A changeset fixing this issue has been commiutted to the development branch
Projects
None yet
Development

No branches or pull requests

1 participant