diff options
Diffstat (limited to 'lm/state.hh')
-rw-r--r-- | lm/state.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lm/state.hh b/lm/state.hh index d8e6c132b..543df37c9 100644 --- a/lm/state.hh +++ b/lm/state.hh @@ -91,7 +91,7 @@ inline uint64_t hash_value(const Left &left) { } struct ChartState { - bool operator==(const ChartState &other) { + bool operator==(const ChartState &other) const { return (right == other.right) && (left == other.left); } @@ -102,7 +102,7 @@ struct ChartState { } bool operator<(const ChartState &other) const { - return Compare(other) == -1; + return Compare(other) < 0; } void ZeroRemaining() { |