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

Bug in printf function #89

Open
VVWVV opened this issue Mar 2, 2018 · 1 comment
Open

Bug in printf function #89

VVWVV opened this issue Mar 2, 2018 · 1 comment

Comments

@VVWVV
Copy link

VVWVV commented Mar 2, 2018

The function does not correctly format the width option.

Example:

printf("%5d", -1);

Output:

-    1

Here the example how it must be formatted:

    -1

This bug works when the function prepends zeros.

@Y-Less
Copy link
Member

Y-Less commented Mar 2, 2018

There are a few bugs in printf:

printf("%d", cellmin);
printf("%x", -1);

I can't remember the rest. I did write a fixed version, but there is no good way that I could think of to fix it remotely efficiently.

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

No branches or pull requests

2 participants