Skip to content

Conversation

@stotko
Copy link
Owner

@stotko stotko commented Oct 14, 2025

Although HUGE_VALF,HUGE_VAL,HUGE_VALL reliably generate an infinity value for floating point types, recent versions of MSVC emit overflow warnings. While intentional in this case, such a warning should not occur in the first place. Fix this behavior by manually constructing infinity values from the IEEE 754 definition via respective bit patterns.

Fixes #461

@stotko stotko added this to the 2.0.0 milestone Oct 14, 2025
@stotko stotko added the bug label Oct 14, 2025
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.63%. Comparing base (53b81d0) to head (26f4a20).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #463   +/-   ##
=======================================
  Coverage   96.63%   96.63%           
=======================================
  Files          33       33           
  Lines        2704     2704           
=======================================
  Hits         2613     2613           
  Misses         91       91           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stotko stotko merged commit c79eb40 into master Oct 14, 2025
61 checks passed
@stotko stotko deleted the msvc_limits_infinity branch October 14, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"floating-point value does not fit in required floating-point type" in limits_detail.h

2 participants