MinoruSekine / libfixedpointnumber

Library for fixed point number by C++11
GNU Lesser General Public License v3.0
3 stars 2 forks source link

fix: Error by clang `-Wnan-infinity-disabled`. (#228) #229

Closed MinoruSekine closed 1 month ago

MinoruSekine commented 1 month ago

Summary

Details

Continuous operation guarantee by

References

Notes

MinoruSekine commented 1 month ago

https://github.com/MinoruSekine/libfixedpointnumber/actions/runs/11205878164/job/31145900489#step:3:1477

  test//test_numeric_limits_bool_consts.cc:68:25: error: use of infinity is undefined behavior due to the currently enabled floating-point options [-Werror,-Wnan-infinity-disabled]
     68 |   EXPECT_EQ(fixed_t(0), limits::infinity());
        |                         ^~~~~~~~~~~~~~~~~~