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(wavm) use PRIu64 for printf portability across architectures #655

Merged

Conversation

dev-null-undefined
Copy link
Contributor

Fixes #653

@CLAassistant
Copy link

CLAassistant commented Dec 14, 2024

CLA assistant check
All committers have signed the CLA.

@thibaultcha
Copy link
Member

Can we just use %lu and avoid anything too fancy? We strive for consistency and simplicity.

@dev-null-undefined
Copy link
Contributor Author

That would work only on 64bit platform and break on 32bit, which for debug printing is probably ok-ish, but I do not think that this is too complex for the benefit of being portable, ofc the call is yours.

@thibaultcha
Copy link
Member

It does seem like we require C99 already anyway so it should be good. To merge it we will need you to sign the CLA though.

@thibaultcha thibaultcha merged commit 67a4fca into Kong:main Dec 18, 2024
1 check passed
@thibaultcha
Copy link
Member

Thank you!

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.

Wrong format for debugging on 64 bit platform
3 participants