Skip to content

Use PRIu64 for uint64_t in format strings#155

Open
djs55 wants to merge 1 commit intoxapi-project:masterfrom
djs55:fix-format-string
Open

Use PRIu64 for uint64_t in format strings#155
djs55 wants to merge 1 commit intoxapi-project:masterfrom
djs55:fix-format-string

Conversation

@djs55
Copy link
Copy Markdown

@djs55 djs55 commented Feb 5, 2015

The format string %lu is for unsigned long, whose width is architecture-
dependent. For fixed-width uint64_t, we should use PRIu64 from <inttypes.h>.

This fixes the build on 32-bit systems.

Signed-off-by: David Scott [email protected]

The format string %lu is for unsigned long, whose width is architecture-
dependent. For fixed-width uint64_t, we should use PRIu64 from <inttypes.h>.

This fixes the build on 32-bit systems.

Signed-off-by: David Scott <[email protected]>
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.

1 participant