mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Fixes compilation in BigEndian architectures.
This commit is contained in:
parent
6878f3f28c
commit
e8a120feb8
1 changed files with 2 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ void MurmurHash3_x86_128(const void* key, unsigned len, const uint8_t* seed, voi
|
||||||
const uint8_t* data = key;
|
const uint8_t* data = key;
|
||||||
unsigned nblocks = len / 16;
|
unsigned nblocks = len / 16;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
const uint32_t* blocks;
|
||||||
|
|
||||||
uint32_t h1 = ((uint32_t*)seed)[0];
|
uint32_t h1 = ((uint32_t*)seed)[0];
|
||||||
uint32_t h2 = ((uint32_t*)seed)[1];
|
uint32_t h2 = ((uint32_t*)seed)[1];
|
||||||
|
|
@ -93,7 +94,7 @@ void MurmurHash3_x86_128(const void* key, unsigned len, const uint8_t* seed, voi
|
||||||
h4 = swap32(h4);
|
h4 = swap32(h4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const uint32_t* blocks = (const uint32_t*)data;
|
blocks = (const uint32_t*)data;
|
||||||
|
|
||||||
/* body */
|
/* body */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue