Update assert
parent
1bbbfb6b75
commit
beed647df2
4
misc.h
4
misc.h
|
|
@ -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++)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue