mirror of
https://github.com/pantor/inja.git
synced 2026-05-12 15:45:24 +00:00
fix single include
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
||||
Op operation;
|
||||
|
||||
std::string name;
|
||||
size_t number_args;
|
||||
int number_args; // Should also be negative -> -1 for unknown number
|
||||
CallbackFunction callback;
|
||||
|
||||
explicit FunctionNode(nonstd::string_view name, size_t pos) : ExpressionNode(pos), precedence(8), associativity(Associativity::Left), operation(Op::Callback), name(name), number_args(1) { }
|
||||
|
||||
@@ -299,7 +299,7 @@ class Renderer : public NodeVisitor {
|
||||
result_ptr = std::make_shared<json>(std::move(result));
|
||||
json_tmp_stack.push_back(result_ptr);
|
||||
} else {
|
||||
double result = std::pow(args[0]->get<int>(), args[1]->get<int>());
|
||||
double result = std::pow(args[0]->get<double>(), args[1]->get<int>());
|
||||
result_ptr = std::make_shared<json>(std::move(result));
|
||||
json_tmp_stack.push_back(result_ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user