mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fixed error in UBSan [#CLICKHOUSE-2]
This commit is contained in:
parent
61413ead23
commit
45a4a95959
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common/Types.h>
|
#include <common/Types.h>
|
||||||
|
#include <common/unaligned.h>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#define ROTL(x, b) static_cast<UInt64>(((x) << (b)) | ((x) >> (64 - (b))))
|
#define ROTL(x, b) static_cast<UInt64>(((x) << (b)) | ((x) >> (64 - (b))))
|
||||||
@ -106,7 +107,7 @@ public:
|
|||||||
|
|
||||||
while (data + 8 <= end)
|
while (data + 8 <= end)
|
||||||
{
|
{
|
||||||
current_word = *reinterpret_cast<const UInt64 *>(data);
|
current_word = unalignedLoad<UInt64>(data);
|
||||||
|
|
||||||
v3 ^= current_word;
|
v3 ^= current_word;
|
||||||
SIPROUND;
|
SIPROUND;
|
||||||
|
Loading…
Reference in New Issue
Block a user