Skip to content

Commit

Permalink
Update comment for signed comparison operators
Browse files Browse the repository at this point in the history
  • Loading branch information
leewei05 authored and Lai-YT committed Sep 13, 2023
1 parent 9e5cb40 commit 7375bc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ std::string DivExprNode::Op_() const {
}

std::string GreaterThanExprNode::OpName_() const {
// for signed greater
// signed
return "sgt";
}

Expand All @@ -290,7 +290,7 @@ std::string GreaterThanExprNode::Op_() const {
}

std::string GreaterThanOrEqualToExprNode::OpName_() const {
// for signed greater or equal
// signed
return "sge";
}

Expand All @@ -299,7 +299,7 @@ std::string GreaterThanOrEqualToExprNode::Op_() const {
}

std::string LessThanExprNode::OpName_() const {
// for signed less
// signed
return "slt";
}

Expand All @@ -308,7 +308,7 @@ std::string LessThanExprNode::Op_() const {
}

std::string LessThanOrEqualToExprNode::OpName_() const {
// for signed less or equal
// signed
return "sle";
}

Expand Down

0 comments on commit 7375bc5

Please sign in to comment.