summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:17:37 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:17:37 +0200
commitc48b24fc06d98569adb72f13c2e8e5ff30bb8036 (patch)
treeb19fd694ebf79dad137bc11ac50b82443589fa41 /tests
parent84f9687cbae972c2c342e10bf69f8ec8f70ae111 (diff)
downloadxz-c48b24fc06d98569adb72f13c2e8e5ff30bb8036.tar.gz
Tests: test_index_hash: Use INDEX_INDICATOR constant instead of 0.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_index_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_index_hash.c b/tests/test_index_hash.c
index a3c021b..bc0cef5 100644
--- a/tests/test_index_hash.c
+++ b/tests/test_index_hash.c
@@ -111,7 +111,7 @@ generate_index(uint8_t *index, const lzma_vli *unpadded_sizes,
size_t in_pos = 0;
size_t out_pos = 0;
// First set index indicator
- index[out_pos++] = 0;
+ index[out_pos++] = INDEX_INDICATOR;
// Next write out Number of Records
assert_lzma_ret(lzma_vli_encode(block_count, &in_pos, index,