fix single include

This commit is contained in:
pantor
2020-07-26 13:16:45 +02:00
parent 7529f21e63
commit 02394683b1
3 changed files with 29 additions and 26 deletions
+1 -1
View File
@@ -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) { }
+1 -1
View File
@@ -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);
}