diff --git a/crc.cpp b/crc.cpp index 1ad15d3d..bdb4e2f1 100644 --- a/crc.cpp +++ b/crc.cpp @@ -136,7 +136,6 @@ void CRC32::Update(const byte *s, size_t n) for(; !IsAligned(s) && n > 0; n--) crc = m_tab[CRC32_INDEX(crc) ^ *s++] ^ CRC32_SHIFTED(crc); - assert((n && IsAlignedOn(s,GetAlignmentOf())) || !n); while (n >= 4) { crc ^= *(const word32 *)(void*)s; @@ -305,7 +304,6 @@ void CRC32C::Update(const byte *s, size_t n) for(; !IsAligned(s) && n > 0; n--) crc = m_tab[CRC32_INDEX(crc) ^ *s++] ^ CRC32_SHIFTED(crc); - assert((n && IsAlignedOn(s,GetAlignmentOf())) || !n); while (n >= 4) { crc ^= *(const word32 *)(void*)s;