Skip to content

"Support" negative precision values #183

@eyalroz

Description

@eyalroz

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingresolved-on-developA changeset fixing this issue has been commiutted to the development branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions