Skip to content

Commit

Permalink
Fix ChartState comparison / Fabien Cromières
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Nov 22, 2013
1 parent 1853117 commit b3359d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lm/state.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -102,7 +102,7 @@ struct ChartState {
}

bool operator<(const ChartState &other) const {
return Compare(other) == -1;
return Compare(other) < 0;
}

void ZeroRemaining() {
Expand Down

0 comments on commit b3359d0

Please sign in to comment.