mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
bug in state comparison. If 2 states are actually the same object, return true, not false
This commit is contained in:
parent
a0182da3c9
commit
e8a6677bbb
@ -54,7 +54,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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user