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

Fix: use %zu instead of %lu when print size_t of count #1522

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Nov 2, 2023

Some architectures don't use unsigned long therefore it is better to use
the specialized %z indicator when printing size_t.

Fixes 1520

@nichtsfrei nichtsfrei marked this pull request as ready for review November 2, 2023 14:40
@nichtsfrei nichtsfrei requested a review from a team as a code owner November 2, 2023 14:40
Some architectures don't use unsigned long therefore it is better to use
the specialized %z indicator when printing size_t.
@nichtsfrei nichtsfrei changed the title Fix: usze %zu instead of %lu when print size_t of count Fix: use %zu instead of %lu when print size_t of count Nov 2, 2023
@nichtsfrei nichtsfrei merged commit 3f1ea08 into main Nov 3, 2023
29 checks passed
@nichtsfrei nichtsfrei deleted the issue-1520 branch November 3, 2023 08:59
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