aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-12 17:09:10 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-14 18:31:16 +0200
commit5938f6de4d8ec9656776cd69e78ddfd6c3ad84e5 (patch)
tree6d17aaac0027ad59a3466af90de147e0b583c357 /src
parentliblzma: LZ decoder: Remove a useless unlikely(). (diff)
downloadxz-5938f6de4d8ec9656776cd69e78ddfd6c3ad84e5.tar.xz
liblzma: LZ decoder: Add unlikely().
Diffstat (limited to 'src')
-rw-r--r--src/liblzma/lz/lz_decoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/lz/lz_decoder.h b/src/liblzma/lz/lz_decoder.h
index fbbe9a38..cb61b6e2 100644
--- a/src/liblzma/lz/lz_decoder.h
+++ b/src/liblzma/lz/lz_decoder.h
@@ -206,7 +206,7 @@ dict_put(lzma_dict *dict, uint8_t byte)
static inline bool
dict_put_safe(lzma_dict *dict, uint8_t byte)
{
- if (dict->pos == dict->limit)
+ if (unlikely(dict->pos == dict->limit))
return true;
dict_put(dict, byte);