aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/xz/liblzma/simple/armthumb.c
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.ru>2022-05-01 01:00:04 +0300
committerrobot-contrib <robot-contrib@yandex-team.ru>2022-05-01 01:00:04 +0300
commitd227d4f3e8008cea9f135e271a5b7d56db6b5c44 (patch)
treeb8281a614aac5bd414d66a98e694a8481c7fb38a /contrib/libs/xz/liblzma/simple/armthumb.c
parent7f2ece0685eaa6dacf4dc9597e31299af1ccd73f (diff)
downloadydb-d227d4f3e8008cea9f135e271a5b7d56db6b5c44.tar.gz
Update contrib/libs/xz to 5.2.5
ref:29083a7fbf2989287893534448231a2be70a960c
Diffstat (limited to 'contrib/libs/xz/liblzma/simple/armthumb.c')
-rw-r--r--contrib/libs/xz/liblzma/simple/armthumb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/xz/liblzma/simple/armthumb.c b/contrib/libs/xz/liblzma/simple/armthumb.c
index eab4862dd7..a8da334a04 100644
--- a/contrib/libs/xz/liblzma/simple/armthumb.c
+++ b/contrib/libs/xz/liblzma/simple/armthumb.c
@@ -23,10 +23,10 @@ armthumb_code(void *simple lzma_attribute((__unused__)),
for (i = 0; i + 4 <= size; i += 2) {
if ((buffer[i + 1] & 0xF8) == 0xF0
&& (buffer[i + 3] & 0xF8) == 0xF8) {
- uint32_t src = ((buffer[i + 1] & 0x7) << 19)
- | (buffer[i + 0] << 11)
- | ((buffer[i + 3] & 0x7) << 8)
- | (buffer[i + 2]);
+ uint32_t src = (((uint32_t)(buffer[i + 1]) & 7) << 19)
+ | ((uint32_t)(buffer[i + 0]) << 11)
+ | (((uint32_t)(buffer[i + 3]) & 7) << 8)
+ | (uint32_t)(buffer[i + 2]);
src <<= 1;