From f3a0582fa41dac524dbc4dc137e5ec9d08603c78 Mon Sep 17 00:00:00 2001 From: Jan Vesely <janvesely@janvesely.net> Date: Thu, 14 Nov 2013 21:58:01 +0100 Subject: [PATCH] fix invalid comparing in transitions --- alib/src/automaton/PDA/TransitionPDA.cpp | 2 +- alib/src/automaton/UnknownTransition.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alib/src/automaton/PDA/TransitionPDA.cpp b/alib/src/automaton/PDA/TransitionPDA.cpp index 0cfec709b6..88c067cdfd 100644 --- a/alib/src/automaton/PDA/TransitionPDA.cpp +++ b/alib/src/automaton/PDA/TransitionPDA.cpp @@ -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; } diff --git a/alib/src/automaton/UnknownTransition.cpp b/alib/src/automaton/UnknownTransition.cpp index 218d42e915..985b35aa3c 100644 --- a/alib/src/automaton/UnknownTransition.cpp +++ b/alib/src/automaton/UnknownTransition.cpp @@ -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; -- GitLab