mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 09:30:34 +00:00
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -261,7 +261,7 @@ numberFromJson(SField const& field, json::Value const& value)
|
||||
// exponents match, or there are no more 0s. If the two results don't match exactly, then the
|
||||
// value has been rounded one way or another, and should not be used, because it may lead to an
|
||||
// unexpected result. canonicalizeParts is not to be confused with Number::canonicalize, because
|
||||
// they're have completely different goals.
|
||||
// they have completely different goals.
|
||||
auto canonicalizeParts = [](NumberParts p, int otherExponent) {
|
||||
if (p.mantissa == 0)
|
||||
return NumberParts{};
|
||||
|
||||
@@ -108,7 +108,7 @@ struct STNumber_test : public beast::unit_test::Suite
|
||||
auto const expectParseThrows = [this, &parseNumber](std::string const& boundary) {
|
||||
try
|
||||
{
|
||||
auto const bad = parseNumber(boundary);
|
||||
parseNumber(boundary);
|
||||
fail();
|
||||
}
|
||||
catch (std::exception const& e)
|
||||
|
||||
Reference in New Issue
Block a user