From 70c7555f6403553ee35539e869de0025592d8564 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 14 Jun 2022 22:21:15 +0300 Subject: Tests: test_vli: Remove an invalid test-assertion. lzma_vli is unsigned so trying a signed value results in a compiler warning from -Wsign-conversion. (lzma_vli)-1 equals to LZMA_VLI_UNKNOWN anyway which is the next assertion. --- tests/test_vli.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') diff --git a/tests/test_vli.c b/tests/test_vli.c index e4cbf6a5..3cf027a8 100644 --- a/tests/test_vli.c +++ b/tests/test_vli.c @@ -52,8 +52,6 @@ static void test_lzma_vli_size(void) { // First test invalid VLI values (should return 0) - // VLI values are unsigned - assert_int_eq(lzma_vli_size(-1), 0); // VLI UNKNOWN is an invalid VLI assert_uint_eq(lzma_vli_size(LZMA_VLI_UNKNOWN), 0); // Loop over a few VLI values just over the maximum -- cgit v1.2.3