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

Corrected offset for args in printf #84

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Athishpranav2003
Copy link

The offset for the arguments earlier for printf was 1 byte even tho the arguments are aligned to 8 bytes. Now this PR fixes this issue

@Athishpranav2003
Copy link
Author

There is a slight change observed in the behavior of printf arguments. Consecutive Integer arguments are clubbed together and aligned to multiple of 8 bytes together(ideally should have done have been aligned individually).

Latest push addresses the issue

printf("%f %d %d %d %f\n") vs printf("%f %d %d %f\n") is the problematic format string

Signed-off-by: Athishpranav2003 <[email protected]>
Copy link

@tgrogers tgrogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. This looks like a useful commit.

Can you provide a before/after sample of the output?
Let us know when you are ready and we can get this merged!

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

Successfully merging this pull request may close these issues.

2 participants