From 9e9333230c161689b279dc755116eb7dbd27f1b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 24 Apr 2016 20:31:38 -0400 Subject: [PATCH] Removed unneeded asserts --- crc.cpp | 2 -- 1 file changed, 2 deletions(-) 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;