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

In printf, use %d instead of %i #510

Merged
merged 1 commit into from
Jan 27, 2024
Merged

In printf, use %d instead of %i #510

merged 1 commit into from
Jan 27, 2024

Conversation

gperciva
Copy link
Member

No description provided.

@gperciva
Copy link
Member Author

I don't know if it's worth making the change, but in #487 (comment), you indicated a preference for printf using %d rather than %i. This fixes the previously-existing instances of %i, in both .c files and .sh scripts.

@cperciva
Copy link
Member

We might as well be consistent. Want to add this to STYLE as well? ("We use %d rather than %i in printf strings.")

Unusually, this commit includes changes to the Makefiles (generated via
`make Makefiles`); it didn't seem worth putting those in a separate
commit.
@gperciva
Copy link
Member Author

Updated with a rebase. I used the sentence

We use %d rather than %i in printf and warn0/warnp strings.

@cperciva cperciva merged commit ca04c8b into master Jan 27, 2024
2 checks passed
@gperciva gperciva deleted the printf-d branch January 27, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants