Opened 6 years ago
Closed 6 years ago
#12209 closed Bugs (fixed)
cpp_bin_float: Subtraction of negative infinity from negative number produces negative infinity
Reported by: | Michael Shatz | Owned by: | John Maddock |
---|---|---|---|
Milestone: | Boost 1.62.0 | Component: | multiprecision |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
cpp_bin_float: subtraction of negative infinity from negative number produces negative infinity instead of positive infinity.
Platform: Mingw, gcc 5.3.0, x64. All optimization levels. Library version: newest files from github 1.60.0 also produces wrong result, but there it is nan rather than -inf
Attachments (1)
Change History (2)
by , 6 years ago
Attachment: | inf_test.cpp added |
---|
comment:1 by , 6 years ago
Milestone: | To Be Determined → Boost 1.62.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Many thanks for catching these!
Fixed in https://github.com/boostorg/multiprecision/commit/aaeb4d737eea9058d3daeab0f0fc10974fe0970f
Note:
See TracTickets
for help on using tickets.
cpp_bin_float: -42 - -inf => -inf