File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ class Renderer : public NodeVisitor {
375
375
} break ;
376
376
case Op::Round: {
377
377
const auto args = get_arguments<2 >(node);
378
- const int precision = args[1 ]->get <const json::number_integer_t >();
378
+ const auto precision = args[1 ]->get <const json::number_integer_t >();
379
379
const double result = std::round (args[0 ]->get <const json::number_float_t >() * std::pow (10.0 , precision)) / std::pow (10.0 , precision);
380
380
if (precision == 0 ) {
381
381
make_result (int (result));
Original file line number Diff line number Diff line change @@ -2444,7 +2444,7 @@ class Renderer : public NodeVisitor {
2444
2444
} break ;
2445
2445
case Op::Round: {
2446
2446
const auto args = get_arguments<2 >(node);
2447
- const int precision = args[1 ]->get <const json::number_integer_t >();
2447
+ const auto precision = args[1 ]->get <const json::number_integer_t >();
2448
2448
const double result = std::round (args[0 ]->get <const json::number_float_t >() * std::pow (10.0 , precision)) / std::pow (10.0 , precision);
2449
2449
if (precision == 0 ) {
2450
2450
make_result (int (result));
You can’t perform that action at this time.
0 commit comments