diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 23:19:34 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 23:19:34 +0300 |
commit | 7883d73530b4b2a701ddd7d50c35676cbc158039 (patch) | |
tree | dea64895ae28278af681691c029f3e1c8c7cedd2 /src/xz/options.c | |
parent | tuklib_cpucores: Silence warnings from -Wsign-conversion. (diff) | |
download | xz-7883d73530b4b2a701ddd7d50c35676cbc158039.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. |