mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-13 00:59:02 +03:00
Fixed nasty bug in WordsBitmap::Compare().
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1727 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
e9df80a05c
commit
740b957472
@ -164,7 +164,7 @@ public:
|
||||
{
|
||||
return (thisSize < compareSize) ? -1 : 1;
|
||||
}
|
||||
return std::memcmp(m_bitmap, compare.m_bitmap, thisSize);
|
||||
return std::memcmp(m_bitmap, compare.m_bitmap, thisSize * sizeof(bool));
|
||||
}
|
||||
|
||||
bool operator< (const WordsBitmap &compare) const
|
||||
|
Loading…
Reference in New Issue
Block a user