diff options
Diffstat (limited to 'moses/WordsBitmap.cpp')
-rw-r--r-- | moses/WordsBitmap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/moses/WordsBitmap.cpp b/moses/WordsBitmap.cpp index caddb9e98..0866846ed 100644 --- a/moses/WordsBitmap.cpp +++ b/moses/WordsBitmap.cpp @@ -65,6 +65,10 @@ int WordsBitmap::GetFutureCosts(int lastPos) const bool WordsBitmap::IsAdjacent(size_t startPos, size_t endPos) const { + if (GetNumWordsCovered() == 0) { + return true; + } + size_t first = GetFirstGapPos(); size_t last = GetLastGapPos(); |