aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/delta
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-23 21:38:56 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-12-31 22:19:18 +0200
commita45d1a5374ceb22e23255b0b595b9e641e9860af (patch)
treeac0a6e71d077fae66d9b2e7881cc05aa1130e4ed /src/liblzma/delta
parenttuklib_integer: Silence warnings from -Wsign-conversion. (diff)
downloadxz-a45d1a5374ceb22e23255b0b595b9e641e9860af.tar.xz
liblzma: Fix warnings from -Wsign-conversion.
Also, more parentheses were added to the literal_subcoder macro in lzma_comon.h (better style but no functional change in the current usage).
Diffstat (limited to 'src/liblzma/delta')
-rw-r--r--src/liblzma/delta/delta_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/delta/delta_decoder.c b/src/liblzma/delta/delta_decoder.c
index 6859afa5..13d8a28f 100644
--- a/src/liblzma/delta/delta_decoder.c
+++ b/src/liblzma/delta/delta_decoder.c
@@ -70,7 +70,7 @@ lzma_delta_props_decode(void **options, const lzma_allocator *allocator,
return LZMA_MEM_ERROR;
opt->type = LZMA_DELTA_TYPE_BYTE;
- opt->dist = props[0] + 1;
+ opt->dist = props[0] + 1U;
*options = opt;