Skip to content

Commit

Permalink
Merge pull request #585 from boostorg/reduce_dec_float_truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos authored Jan 19, 2024
2 parents e584f4f + 73fb4d3 commit 878138a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
24 changes: 0 additions & 24 deletions .codecov.yml

This file was deleted.

32 changes: 32 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 1
round: up
range: '50...100'
status:
project:
default: # This can be anything, but it needs to exist as the name
# basic settings
target: 75%
threshold: 10%
if_ci_failed: error #success, failure, error, ignore
only_pulls: false
patch:
default:
target: 75%
threshold: 25%

parsers:
gcov:
branch_detection:
conditional: no
loop: no
method: no
macro: no

comment:
layout: 'reach,diff,flags,files,footer'
behavior: default
require_changes: no
12 changes: 6 additions & 6 deletions include/boost/multiprecision/cpp_dec_float.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ class cpp_dec_float
}
else
{
std::copy(result.cbegin() + 1,
result.cbegin() + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result.cbegin() + static_cast<std::ptrdiff_t>(1),
result.cbegin() + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down Expand Up @@ -673,8 +673,8 @@ class cpp_dec_float
}
else
{
std::copy(result.cbegin() + 1,
result.cbegin() + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result.cbegin() + static_cast<std::ptrdiff_t>(1),
result.cbegin() + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down Expand Up @@ -719,8 +719,8 @@ class cpp_dec_float
}
else
{
std::copy(result + 1,
result + (std::min)(static_cast<std::int32_t>(prec_elems_for_multiply + 1), cpp_dec_float_elem_number),
std::copy(result + static_cast<std::ptrdiff_t>(1),
result + static_cast<std::ptrdiff_t>(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)),
data.begin());
}
}
Expand Down

0 comments on commit 878138a

Please sign in to comment.