mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Fix one more unaligned read to use unaligned_read16ne().
This commit is contained in:
parent
ce59b34ec9
commit
6a73a78895
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
// Endianness doesn't matter in hash_2_calc() (no effect on the output).
|
||||
#ifdef TUKLIB_FAST_UNALIGNED_ACCESS
|
||||
# define hash_2_calc() \
|
||||
const uint32_t hash_value = *(const uint16_t *)(cur)
|
||||
const uint32_t hash_value = unaligned_read16ne(cur)
|
||||
#else
|
||||
# define hash_2_calc() \
|
||||
const uint32_t hash_value \
|
||||
|
|
Loading…
Reference in a new issue