silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2022-12-21 21:53:25 -05:00
parent e2f9d59484
commit 4293771ae8
7 changed files with 100 additions and 98 deletions

View File

@ -37,25 +37,25 @@ using namespace LMP_Lepton;
using namespace std;
ExpressionTreeNode::ExpressionTreeNode(Operation* operation, const vector<ExpressionTreeNode>& children) : operation(operation), children(children) {
if (operation->getNumArguments() != children.size())
if (operation->getNumArguments() != (int)children.size())
throw Exception("wrong number of arguments to function: "+operation->getName());
}
ExpressionTreeNode::ExpressionTreeNode(Operation* operation, const ExpressionTreeNode& child1, const ExpressionTreeNode& child2) : operation(operation) {
children.push_back(child1);
children.push_back(child2);
if (operation->getNumArguments() != children.size())
if (operation->getNumArguments() != (int)children.size())
throw Exception("wrong number of arguments to function: "+operation->getName());
}
ExpressionTreeNode::ExpressionTreeNode(Operation* operation, const ExpressionTreeNode& child) : operation(operation) {
children.push_back(child);
if (operation->getNumArguments() != children.size())
if (operation->getNumArguments() != (int)children.size())
throw Exception("wrong number of arguments to function: "+operation->getName());
}
ExpressionTreeNode::ExpressionTreeNode(Operation* operation) : operation(operation) {
if (operation->getNumArguments() != children.size())
if (operation->getNumArguments() != (int)children.size())
throw Exception("wrong number of arguments to function: "+operation->getName());
}