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

json_int_t should be typedef'd as intmax_t #659

Open
jscott0 opened this issue Aug 10, 2023 · 0 comments
Open

json_int_t should be typedef'd as intmax_t #659

jscott0 opened this issue Aug 10, 2023 · 0 comments

Comments

@jscott0
Copy link

jscott0 commented Aug 10, 2023

Hello,
Currently the documentation says about json_int_t that "It represents the widest integer type available on your system." So by definition it's supposed to be equivalent to intmax_t. However, long long is not guaranteed to be equivalent to intmax_t. We should simply typedef json_int_t as an alias to intmax_t and forget about the nonsense of whether it's a long or long long.

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