Removed unneeded asserts

pull/161/head
Jeffrey Walton 2016-04-24 20:31:38 -04:00
parent bf22c4575b
commit 9e9333230c
1 changed files with 0 additions and 2 deletions

View File

@ -136,7 +136,6 @@ void CRC32::Update(const byte *s, size_t n)
for(; !IsAligned<word32>(s) && n > 0; n--)
crc = m_tab[CRC32_INDEX(crc) ^ *s++] ^ CRC32_SHIFTED(crc);
assert((n && IsAlignedOn(s,GetAlignmentOf<word32>())) || !n);
while (n >= 4)
{
crc ^= *(const word32 *)(void*)s;
@ -305,7 +304,6 @@ void CRC32C::Update(const byte *s, size_t n)
for(; !IsAligned<word32>(s) && n > 0; n--)
crc = m_tab[CRC32_INDEX(crc) ^ *s++] ^ CRC32_SHIFTED(crc);
assert((n && IsAlignedOn(s,GetAlignmentOf<word32>())) || !n);
while (n >= 4)
{
crc ^= *(const word32 *)(void*)s;