aboutsummaryrefslogtreecommitdiff
path: root/src
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-06-02 00:50:59 +0300
commitc460f6defebc5a81bbca90adc2476154ca244f69 (patch)
tree5633535ee1e39868ca3706e13e8b7f515cf74f7a /src
parentUpdate THANKS. (diff)
downloadxz-c460f6defebc5a81bbca90adc2476154ca244f69.tar.xz
liblzma: Fix one more unaligned read to use unaligned_read16ne().
Diffstat (limited to 'src')
-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 \