diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 3b2e997a7..000000000 --- a/.codecov.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2019 - 2021 Alexander Grund -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) -# -# Sample codecov configuration file. Edit as required - -codecov: - max_report_age: off - require_ci_to_pass: yes - notify: - # Increase this if you have multiple coverage collection jobs - after_n_builds: 1 - wait_for_ci: yes - -# Change how pull request comments look -comment: - layout: "reach,diff,flags,files,footer" - -# Ignore specific files or folders. Glob patterns are supported. -# See https://docs.codecov.com/docs/ignoring-paths -ignore: - - extra/**/* - - config/**/* - - performance/**/* diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..f502a9b6f --- /dev/null +++ b/codecov.yml @@ -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 diff --git a/include/boost/multiprecision/cpp_dec_float.hpp b/include/boost/multiprecision/cpp_dec_float.hpp index 2cc19605a..6270556c0 100644 --- a/include/boost/multiprecision/cpp_dec_float.hpp +++ b/include/boost/multiprecision/cpp_dec_float.hpp @@ -635,8 +635,8 @@ class cpp_dec_float } else { - std::copy(result.cbegin() + 1, - result.cbegin() + (std::min)(static_cast(prec_elems_for_multiply + 1), cpp_dec_float_elem_number), + std::copy(result.cbegin() + static_cast(1), + result.cbegin() + static_cast(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)), data.begin()); } } @@ -673,8 +673,8 @@ class cpp_dec_float } else { - std::copy(result.cbegin() + 1, - result.cbegin() + (std::min)(static_cast(prec_elems_for_multiply + 1), cpp_dec_float_elem_number), + std::copy(result.cbegin() + static_cast(1), + result.cbegin() + static_cast(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)), data.begin()); } } @@ -719,8 +719,8 @@ class cpp_dec_float } else { - std::copy(result + 1, - result + (std::min)(static_cast(prec_elems_for_multiply + 1), cpp_dec_float_elem_number), + std::copy(result + static_cast(1), + result + static_cast(1 + (std::min)(prec_elems_for_multiply, cpp_dec_float_elem_number)), data.begin()); } }