diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2016-12-06 16:23:26 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2016-12-06 16:23:26 +0300 |
commit | e8a6677bbbbf0ccdc3f8ae07211fe988020ef7dc (patch) | |
tree | fab58e4626f0d1cd39b2de0810db00e2aa4c18b7 /moses/FF | |
parent | a0182da3c94deb2f75082c87e167c4a933edb56d (diff) |
bug in state comparison. If 2 states are actually the same object, return true, not false
Diffstat (limited to 'moses/FF')
-rw-r--r-- | moses/FF/LexicalReordering/BidirectionalReorderingState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/FF/LexicalReordering/BidirectionalReorderingState.cpp b/moses/FF/LexicalReordering/BidirectionalReorderingState.cpp index 22f550ba8..5d264e4c8 100644 --- a/moses/FF/LexicalReordering/BidirectionalReorderingState.cpp +++ b/moses/FF/LexicalReordering/BidirectionalReorderingState.cpp @@ -15,7 +15,7 @@ size_t BidirectionalReorderingState::hash() const bool BidirectionalReorderingState::operator==(const FFState& o) const { - if (&o == this) return 0; + if (&o == this) return true; BidirectionalReorderingState const &other = static_cast<BidirectionalReorderingState const&>(o); |