diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-02 00:50:59 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 22:19:18 +0200 |
commit | 6a73a7889587aa394e236c7e9e4f870b44851036 (patch) | |
tree | 67696bf2d1e39ab1d88f70159fa89e1d01983141 /src/liblzma/lz/lz_encoder_hash.h | |
parent | Update THANKS. (diff) | |
download | xz-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.h | 2 |
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 \ |