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

Correct size_t format specifier #651

Merged
merged 1 commit into from
Jun 8, 2023
Merged

Correct size_t format specifier #651

merged 1 commit into from
Jun 8, 2023

Conversation

jrade
Copy link
Contributor

@jrade jrade commented Jun 7, 2023

Printing a size_t value with format specifier %lu (or %ld) does not work on 64-bit Windows where long is 4 bytes and size_t is 8 bytes. The preferred format specifier for size_t is %zu.

Printing a size_t value with format specifier %lu (or %ld) does not work on 64-bit Windows where
long is 4 bytes and size_t is 8 bytes. The preferred format specifier for size_t is %zu.
@erikbern erikbern merged commit 5c8d68a into spotify:main Jun 8, 2023
15 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.

None yet

2 participants