diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-02 00:50:59 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-02 00:50:59 +0300 |
commit | c460f6defebc5a81bbca90adc2476154ca244f69 (patch) | |
tree | 5633535ee1e39868ca3706e13e8b7f515cf74f7a /src/liblzma/lz | |
parent | Update THANKS. (diff) | |
download | xz-c460f6defebc5a81bbca90adc2476154ca244f69.tar.xz |
liblzma: Fix one more unaligned read to use unaligned_read16ne().
Diffstat (limited to '')
-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 \ |