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 incorrect conversion of string inf to double seen on MinGW #3449

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

bowers
Copy link
Contributor

@bowers bowers commented Mar 27, 2025

This PR changes the string-to-double conversion when reading SLI from std::atoi() to std::strtod(). This resolves an error observed in MinGW in which the value "inf" is converted to 0 instead of infinity.

This is related to #3217.

Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks good except for two stray spaces.

@heplesser heplesser added T: Bug Wrong statements in the code or documentation S: High Should be handled next I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Mar 28, 2025
Co-authored-by: Hans Ekkehard Plesser <[email protected]>
@bowers bowers requested a review from heplesser March 29, 2025 18:32
@heplesser heplesser merged commit 85b877f into nest:master Mar 31, 2025
24 checks passed
@heplesser
Copy link
Contributor

@bowers Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Bug Wrong statements in the code or documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants