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

Type correctness fixes #87

Merged
merged 3 commits into from
Dec 17, 2023
Merged

Type correctness fixes #87

merged 3 commits into from
Dec 17, 2023

Conversation

ZenoArrows
Copy link
Contributor

@ZenoArrows ZenoArrows commented Dec 11, 2023

This fixes some attempts to print 64-bit integers with %d. I decided to narrow the type of MicroProfileLogGetType rather than change the format string, since a 64-bit integer for 2 bit flags is way too overkill. We should also consider narrowing other types like MicroProfileLogGetTimerIndex which also uses a 64-bit integer even though MicroProfileGetTimerIndex returns a 16-bit integer.

Beyond this there are many more type fixes possible, since there's lots of attempts to print unsigned types as signed integers. Shall I address those in this PR as well or should we keep that separate? Also, do you want to use %PRIu64 or %lld? I've seen both usages, we don't really need to use the former since we don't rely on the libc sprintf.

Fixes issue #86.

@jonasmr
Copy link
Owner

jonasmr commented Dec 17, 2023

Thank you for the fixes.

@jonasmr jonasmr merged commit b77e583 into jonasmr:master Dec 17, 2023
4 of 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