Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/moses/FF
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2016-12-06 16:23:26 +0300
committerHieu Hoang <hieuhoang@gmail.com>2016-12-06 16:23:26 +0300
commite8a6677bbbbf0ccdc3f8ae07211fe988020ef7dc (patch)
treefab58e4626f0d1cd39b2de0810db00e2aa4c18b7 /moses/FF
parenta0182da3c94deb2f75082c87e167c4a933edb56d (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.cpp2
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);