Skip to content
Snippets Groups Projects
Commit f3a0582f authored by Jan Vesely's avatar Jan Vesely
Browse files

fix invalid comparing in transitions

parent feda8a50
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ bool TransitionPDA::operator <(const TransitionPDA& other) const {
return from < other.from;
} else if (input != other.input) {
return input < other.input;
} else if (to != to) {
} else if (to != other.to) {
return to < other.to;
}
 
......
......@@ -55,7 +55,7 @@ bool UnknownTransition::operator <(const UnknownTransition& other) const {
return input < other.input;
} else if (to != other.to) {
return to < other.to;
} else if (output != output) {
} else if (output != other.output) {
return output < other.output;
} else if (shift != other.shift) {
return shift < other.shift;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment