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

fmt: warning: cast from pointer to integer of different size (32-bits) #434

Closed
alfredh opened this issue Jul 15, 2022 · 3 comments · Fixed by #437
Closed

fmt: warning: cast from pointer to integer of different size (32-bits) #434

alfredh opened this issue Jul 15, 2022 · 3 comments · Fixed by #437

Comments

@alfredh
Copy link
Contributor

alfredh commented Jul 15, 2022

New compile warnings on Debian 10 32-bits:

src/fmt/print.c: In function ‘re_vhprintf’:
src/fmt/print.c:329:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     len = local_itoa(num, (uint64_t)ptr,
                           ^

gcc 8.3.0

@sreimers
Copy link
Member

Does this PR #437 fix the warning?

@alfredh
Copy link
Contributor Author

alfredh commented Jul 15, 2022

thanks, yes that PR fixes the warning on 32-bits

@sreimers
Copy link
Member

I will try to add 32-bits github checks.

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 a pull request may close this issue.

2 participants