mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Update unaligned.h
This commit is contained in:
parent
57e31cadfa
commit
6cc08afb72
@ -10,13 +10,13 @@ inline void reverseMemcpy(void * dst, const void * src, size_t size)
|
||||
uint8_t * uint_dst = reinterpret_cast<uint8_t *>(dst);
|
||||
const uint8_t * uint_src = reinterpret_cast<const uint8_t *>(src);
|
||||
|
||||
uint_dst += length;
|
||||
uint_dst += size;
|
||||
while (length)
|
||||
{
|
||||
--uint_dst;
|
||||
*uint_dst = *uint_src;
|
||||
++uint_src;
|
||||
--length;
|
||||
--size;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user