mirror of
https://github.com/pantor/inja.git
synced 2026-10-06 20:37:17 +00:00
remove const from static cast
This commit is contained in:
1 parent
a9ce204b3b
commit
4526fb4007
2 files changed
+2
-2
No files matched your search
@@ -2357,7 +2357,7 @@ class Renderer : public NodeVisitor {
|
||||
case Op::Power: {
|
||||
const auto args = get_arguments<2>(node);
|
||||
if (args[0]->is_number_integer() && args[1]->get<const json::number_integer_t>() >= 0) {
|
||||
const auto result = static_cast<const json::number_integer_t>(std::pow(args[0]->get<const json::number_integer_t>(), args[1]->get<const json::number_integer_t>()));
|
||||
const auto result = static_cast<json::number_integer_t>(std::pow(args[0]->get<const json::number_integer_t>(), args[1]->get<const json::number_integer_t>()));
|
||||
make_result(result);
|
||||
} else {
|
||||
const auto result = std::pow(args[0]->get<const json::number_float_t>(), args[1]->get<const json::number_integer_t>());
|
||||
|
||||
Reference in new issue
Block a user