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 format specifier for printing a size_t #340

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

kevinbackhouse
Copy link
Collaborator

%d is not the correct format specifier for size_t. I think %zu should be correct, provided that nobody is using an old compiler that doesn't support it. Based on this stackoverflow question from 10 years ago, I think it should be ok.

@anticomputer anticomputer merged commit 049a6e3 into github:master Jul 20, 2023
5 checks passed
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