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

Use PRI integer formatting to fix compile errors on Mac OS #19

Open
salcock opened this issue Jun 14, 2022 · 0 comments
Open

Use PRI integer formatting to fix compile errors on Mac OS #19

salcock opened this issue Jun 14, 2022 · 0 comments

Comments

@salcock
Copy link
Contributor

salcock commented Jun 14, 2022

int64_t and uint64_t are apparently long long on Mac OS, so our current formatting with a single l is insufficient for that system. This means that compilation on Mac OS fails unless the user adds in the extra l for each line where a compile error occurs.

But on Linux, these types are long so we can't just simply replace each l with ll -- we're going to need to use the PRI macros to ensure that the right formatting is applied for each operating system.

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

No branches or pull requests

1 participant