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

test: fix GetRangeWithMaxLongLength on 32 bit machines #1867

Merged

Conversation

Tachi107
Copy link
Contributor

The test used the hardcoded long value for 64 bit machines even on 32 bit ones, leading to test failures. With this patch the max long length is obtained using std::numeric_limits<long>::max(). Thanks to @q2a3z for the hint!

Fixes: #1795

The test used the hardcoded long value for 64 bit machines even on 32
bit ones, leading to test failures. With this patch the max long length
is obtained using std::numeric_limits<long>::max(). Thanks to q2a3z for
the hint!

Fixes: yhirose#1795
@yhirose yhirose merged commit bdefdce into yhirose:master Jun 23, 2024
4 checks passed
@yhirose
Copy link
Owner

yhirose commented Jun 23, 2024

@Tachi107 thanks a lot for fixing this issue!

@Tachi107 Tachi107 deleted the fix-GetRangeWithMaxLongLength-32bit branch June 24, 2024 06:46
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.

GetRangeWithMaxLongLength failing on 32-bit
2 participants