Update assert

pull/3/merge
Jeffrey Walton 2018-08-24 09:25:19 -04:00
parent 1bbbfb6b75
commit beed647df2
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

4
misc.h
View File

@ -2072,8 +2072,8 @@ void ByteReverse(T *out, const T *in, size_t byteCount)
{ {
// Alignment check due to Issues 690 // Alignment check due to Issues 690
CRYPTOPP_ASSERT(byteCount % sizeof(T) == 0); CRYPTOPP_ASSERT(byteCount % sizeof(T) == 0);
CRYPTOPP_ASSERT(IsAligned<T>(in)); CRYPTOPP_ASSERT(IsAligned<T*>(in));
CRYPTOPP_ASSERT(IsAligned<T>(out)); CRYPTOPP_ASSERT(IsAligned<T*>(out));
size_t count = byteCount/sizeof(T); size_t count = byteCount/sizeof(T);
for (size_t i=0; i<count; i++) for (size_t i=0; i<count; i++)