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:
chardmeier 2008-05-16 11:02:20 +00:00
parent e9df80a05c
commit 740b957472

View File

@ -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