diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-25 00:08:13 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 22:26:38 +0200 |
commit | f18eee9d15a22c8449ef395a05f0eb637c4ad253 (patch) | |
tree | b2d0c034b836fa3a01e68fb7509424d8c60d6dc9 /tests/test_stream_flags.c | |
parent | liblzma: Add a comment. (diff) | |
download | xz-f18eee9d15a22c8449ef395a05f0eb637c4ad253.tar.xz |
Tests: Silence warnings from clang -Wassign-enum.
Also changed 999 to 99 so it fits even if lzma_check happened
to be 8 bits wide.
Diffstat (limited to 'tests/test_stream_flags.c')
-rw-r--r-- | tests/test_stream_flags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_stream_flags.c b/tests/test_stream_flags.c index 9611459e..b40d035b 100644 --- a/tests/test_stream_flags.c +++ b/tests/test_stream_flags.c @@ -83,7 +83,7 @@ test_footer(void) static void test_encode_invalid(void) { - known_flags.check = LZMA_CHECK_ID_MAX + 1; + known_flags.check = (lzma_check)(LZMA_CHECK_ID_MAX + 1); known_flags.backward_size = 1024; expect(lzma_stream_header_encode(&known_flags, buffer) |