]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Remove unwanted semicolons
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 26 Nov 2025 11:50:57 +0000 (13:50 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 9 Dec 2025 15:18:22 +0000 (17:18 +0200)
These didn't affect control flow.

src/liblzma/common/vli_decoder.c
src/liblzma/lzma/lzma_common.h
src/liblzma/rangecoder/range_decoder.h

index 3254ccc35bdee1371bcb3fda9d1b1d44ed6ce277..7fa5f47e10c47ab81de29a5eee1476d2c0acd631 100644 (file)
@@ -38,7 +38,7 @@ lzma_vli_decode(lzma_vli *restrict vli, size_t *vli_pos,
                // Validate the arguments.
                if (*vli_pos >= LZMA_VLI_BYTES_MAX
                                || (*vli >> (*vli_pos * 7)) != 0)
-                       return LZMA_PROG_ERROR;;
+                       return LZMA_PROG_ERROR;
 
                if (*in_pos >= in_size)
                        return LZMA_BUF_ERROR;
index c3c587f090ecb9228a2e84fd45b04833d29edd6f..49d9516bd1930a5840ece57a26dcdcf66acd8dff 100644 (file)
@@ -88,14 +88,14 @@ typedef enum {
 #define update_literal_normal(state) \
        state = ((state) <= STATE_SHORTREP_LIT_LIT \
                        ? STATE_LIT_LIT \
-                       : (state) - 3);
+                       : (state) - 3)
 
 /// Like update_literal(state) but when it is already known that
 /// is_literal_state(state) is false.
 #define update_literal_matched(state) \
        state = ((state) <= STATE_LIT_SHORTREP \
                        ? (state) - 3 \
-                       : (state) - 6);
+                       : (state) - 6)
 
 /// Indicate that the latest state was a match.
 #define update_match(state) \
index a8aca9077c13a8d5313428e6b750a30cde5c9579..77cfaf7857d9b69cee790cfa35879454347a2483 100644 (file)
@@ -246,14 +246,14 @@ do { \
 #define rc_bit(prob, action0, action1) \
        rc_bit_last(prob, \
                symbol <<= 1; action0, \
-               symbol = (symbol << 1) + 1; action1);
+               symbol = (symbol << 1) + 1; action1)
 
 
 #define rc_bit_safe(prob, action0, action1, seq) \
        rc_bit_last_safe(prob, \
                symbol <<= 1; action0, \
                symbol = (symbol << 1) + 1; action1, \
-               seq);
+               seq)
 
 // Unroll fixed-sized bittree decoding.
 //
@@ -327,7 +327,7 @@ do { \
 #define rc_bit_add_if_1(probs, dest, value_to_add_if_1) \
        rc_bit(probs[symbol], \
                , \
-               dest += value_to_add_if_1);
+               dest += value_to_add_if_1)
 
 
 // Matched literal