aboutsummaryrefslogtreecommitdiff
path: root/src/xz/options.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-23 23:19:34 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-23 23:19:34 +0300
commit7883d73530b4b2a701ddd7d50c35676cbc158039 (patch)
treedea64895ae28278af681691c029f3e1c8c7cedd2 /src/xz/options.c
parenttuklib_cpucores: Silence warnings from -Wsign-conversion. (diff)
downloadxz-7883d73530b4b2a701ddd7d50c35676cbc158039.tar.xz
xz: Fix some of the warnings from -Wsign-conversion.
Diffstat (limited to 'src/xz/options.c')
-rw-r--r--src/xz/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/options.c b/src/xz/options.c
index de05364b..0c1ee221 100644
--- a/src/xz/options.c
+++ b/src/xz/options.c
@@ -258,7 +258,7 @@ set_lzma(void *options, unsigned key, uint64_t value, const char *valuestr)
if (valuestr[0] < '0' || valuestr[0] > '9')
error_lzma_preset(valuestr);
- uint32_t preset = valuestr[0] - '0';
+ uint32_t preset = (uint32_t)(valuestr[0] - '0');
// Currently only "e" is supported as a modifier,
// so keep this simple for now.