aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lz/lz_encoder_hash.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-02 00:50:59 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-12-31 22:19:18 +0200
commit6a73a7889587aa394e236c7e9e4f870b44851036 (patch)
tree67696bf2d1e39ab1d88f70159fa89e1d01983141 /src/liblzma/lz/lz_encoder_hash.h
parentUpdate THANKS. (diff)
downloadxz-6a73a7889587aa394e236c7e9e4f870b44851036.tar.xz
liblzma: Fix one more unaligned read to use unaligned_read16ne().
Diffstat (limited to 'src/liblzma/lz/lz_encoder_hash.h')
-rw-r--r--src/liblzma/lz/lz_encoder_hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/lz/lz_encoder_hash.h b/src/liblzma/lz/lz_encoder_hash.h
index 342a333d..f238f9d9 100644
--- a/src/liblzma/lz/lz_encoder_hash.h
+++ b/src/liblzma/lz/lz_encoder_hash.h
@@ -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 \