]> granicus.if.org Git - xz/commitdiff
Fixed compilation of test_filter_flags.c, which was broken by
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 27 Sep 2008 20:01:15 +0000 (23:01 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 27 Sep 2008 20:01:15 +0000 (23:01 +0300)
1dcecfb09b55157b8653d747963069c8bed74f04.

tests/test_filter_flags.c

index 2b53a688a6313af5e28e150e60b30ffa2b2728da..490864f867209b022f1a9ebd9def34a14812dc44 100644 (file)
@@ -145,31 +145,31 @@ test_delta(void)
        // Test 2
        lzma_options_delta options = {
                .type = LZMA_DELTA_TYPE_BYTE,
-               .distance = 0
+               .dist = 0
        };
        known_flags.options = &options;
        expect(encode(99));
 
        // Test 3
-       options.distance = LZMA_DELTA_DISTANCE_MIN;
+       options.dist = LZMA_DELTA_DIST_MIN;
        expect(!encode(3));
        expect(!decode(3));
-       expect(((lzma_options_delta *)(decoded_flags.options))
-                               ->distance == options.distance);
+       expect(((lzma_options_delta *)(decoded_flags.options))->dist
+                       == options.dist);
 
        free(decoded_flags.options);
 
        // Test 4
-       options.distance = LZMA_DELTA_DISTANCE_MAX;
+       options.dist = LZMA_DELTA_DIST_MAX;
        expect(!encode(3));
        expect(!decode(3));
-       expect(((lzma_options_delta *)(decoded_flags.options))
-                               ->distance == options.distance);
+       expect(((lzma_options_delta *)(decoded_flags.options))->dist
+                       == options.dist);
 
        free(decoded_flags.options);
 
        // Test 5
-       options.distance = LZMA_DELTA_DISTANCE_MAX + 1;
+       options.dist = LZMA_DELTA_DIST_MAX + 1;
        expect(encode(99));
 }
 #endif