-
Notifications
You must be signed in to change notification settings - Fork 126
Fix warning from scoped_default_precision #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix warning from scoped_default_precision #691
Conversation
I get these warnings:
this is sample code: #include <boost/multiprecision/cpp_int.hpp>
#include <utility>
#include <string_view>
#include <stdint.h>
std::pair<uint64_t, uint64_t> from_string(const std::string_view& s);
std::pair<int, int> parse_splits(std::string_view split_from, std::string_view split_to)
{
using namespace boost::multiprecision;
auto [from, from_m] = from_string(split_from);
auto [to, to_m] = from_string(split_to);
if (from_m != 1 || to_m != 1)
{
uint128_t x = uint128_t(from) * to_m;
uint128_t y = uint128_t(to) * from_m;
uint128_t z = gcd(x, y);
from = uint64_t(x / z);
to = uint64_t(y / z);
}
return {int(from), int(to)};
} I compile it with |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #691 +/- ##
=========================================
+ Coverage 94.1% 94.1% +0.1%
=========================================
Files 279 280 +1
Lines 28979 29074 +95
=========================================
+ Hits 27253 27349 +96
+ Misses 1726 1725 -1
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
CI Failures are unrelated, will investigate separately. |
No description provided.