Update unaligned.h

This commit is contained in:
Alexey Milovidov 2022-08-04 08:18:45 +03:00 committed by GitHub
parent 6cc08afb72
commit dd96aee8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ inline void reverseMemcpy(void * dst, const void * src, size_t size)
const uint8_t * uint_src = reinterpret_cast<const uint8_t *>(src); const uint8_t * uint_src = reinterpret_cast<const uint8_t *>(src);
uint_dst += size; uint_dst += size;
while (length) while (size)
{ {
--uint_dst; --uint_dst;
*uint_dst = *uint_src; *uint_dst = *uint_src;