Commit 8e556fc1 authored by Marius Wachtler's avatar Marius Wachtler

Fix reversing of >= and <= compare operations

Just noticed that they are also wrong
parent d6deccbc
......@@ -168,11 +168,11 @@ std::string getReverseOpName(int op_type) {
if (op_type == AST_TYPE::Lt)
return getOpName(AST_TYPE::Gt);
if (op_type == AST_TYPE::LtE)
return getOpName(AST_TYPE::Gt);
return getOpName(AST_TYPE::GtE);
if (op_type == AST_TYPE::Gt)
return getOpName(AST_TYPE::Lt);
if (op_type == AST_TYPE::GtE)
return getOpName(AST_TYPE::Lt);
return getOpName(AST_TYPE::LtE);
if (op_type == AST_TYPE::NotEq)
return getOpName(AST_TYPE::NotEq);
if (op_type == AST_TYPE::Eq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment