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

printf prints the wrong number for floats #391

Open
pablo-mendoza opened this issue Dec 28, 2018 · 2 comments
Open

printf prints the wrong number for floats #391

pablo-mendoza opened this issue Dec 28, 2018 · 2 comments
Labels
bug retracev2 Applies only to retrace v2

Comments

@pablo-mendoza
Copy link
Contributor

This program:

#include <stdio.h>
int main(void)
{
        printf ("%.0f %d\n", 1.0, 1);
}

will print "1 1" when run on its own, but when run under retrace v2 would print "0 1"

@pablo-mendoza pablo-mendoza added bug retracev2 Applies only to retrace v2 labels Dec 28, 2018
@ronaldtse
Copy link
Contributor

@riataman good find -- can we add a test for this?

@pablo-mendoza
Copy link
Contributor Author

I need to revamp the tests, I don't think we are running any tests for v2 right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug retracev2 Applies only to retrace v2
Projects
None yet
Development

No branches or pull requests

2 participants