hash/buzhash: remove overzealous rotation warning

This commit is contained in:
Danny Robson 2019-04-22 14:23:26 +10:00
parent 209a6800c4
commit 8e92563a15

View File

@ -47,8 +47,7 @@ namespace cruft::hash {
{
// Zero width would make for a constant zero hash.
CHECK_NEZ (_width);
// Rotations greater than data type size is often undefined.
CHECK_LT (_width, sizeof (WordT ) * 8);
// Rotations greater than data type size are often undefined.
CHECK_LT (_width, sizeof (StateT) * 8);
if (_init.size () < m_width)