diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 23:19:34 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 22:19:18 +0200 |
commit | 37df03ce52ce53710e1513387648763f8a744154 (patch) | |
tree | 8cf473cb950c8e2de1038a74e89057f7c3c01910 /src/xz/options.c | |
parent | tuklib_cpucores: Silence warnings from -Wsign-conversion. (diff) | |
download | xz-37df03ce52ce53710e1513387648763f8a744154.tar.xz |
xz: Fix some of the warnings from -Wsign-conversion.
Diffstat (limited to '')
-rw-r--r-- | src/xz/options.c | 2 |
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. |