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

Updated test for when long int is not 8 byte #132

Closed
wants to merge 2 commits into from

Conversation

dbungert
Copy link
Contributor

If sizeof(long int) != 8, the current tests will fail. Update the test
to use limits.h to help know what LONG_MAX/MIN are.
This also implies that iniparser_getlongint() will vary in terms of
being able to accept different width integers, depending on
architecture. The goal here was to fix the test, not change the API.

If sizeof(long int) != 8, the current tests will fail.  Update the test
to use limits.h to help know what LONG_MAX/MIN are.
This also implies that iniparser_getlongint() will vary in terms of
being able to accept different width integers, depending on
architecture.  The goal here was to fix the test, not change the API.
@hramrach
Copy link
Contributor

hramrach commented Feb 2, 2024

This has been addressed in #140

@ndevilla
Copy link
Owner

ndevilla commented Feb 2, 2024

Fixed in #140

@ndevilla ndevilla closed this Feb 2, 2024
@dbungert dbungert deleted the 32bit-long-int branch February 2, 2024 20:39
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.

3 participants