aboutsummaryrefslogtreecommitdiff
path: root/tests/test_block_header.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-25 00:08:13 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-12-31 22:26:38 +0200
commitf18eee9d15a22c8449ef395a05f0eb637c4ad253 (patch)
treeb2d0c034b836fa3a01e68fb7509424d8c60d6dc9 /tests/test_block_header.c
parentliblzma: Add a comment. (diff)
downloadxz-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 '')
-rw-r--r--tests/test_block_header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_block_header.c b/tests/test_block_header.c
index 3d9b5d93..7cd38985 100644
--- a/tests/test_block_header.c
+++ b/tests/test_block_header.c
@@ -127,7 +127,8 @@ test1(void)
known_options.filters = filters_one;
expect(lzma_block_header_size(&known_options) == LZMA_OK);
- known_options.check = 999; // Some invalid value, which gets ignored.
+ // Some invalid value, which gets ignored.
+ known_options.check = (lzma_check)(99);
expect(lzma_block_header_size(&known_options) == LZMA_OK);
known_options.compressed_size = 5;