]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
ZSTD_VecMask_next: fix incorrect variable name in fallback code path 2657/head
authorDan Nelson <dnelson_1901@yahoo.com>
Sat, 15 May 2021 15:20:37 +0000 (10:20 -0500)
committerDan Nelson <dnelson_1901@yahoo.com>
Sat, 15 May 2021 15:20:37 +0000 (10:20 -0500)
lib/compress/zstd_lazy.c

index 0c4b49e4da0ec3bd10bd60af7fe4238dc6758a03..fea4686f07316c90381af3e2843ab080ab1b7d63 100644 (file)
@@ -1081,7 +1081,7 @@ static U32 ZSTD_VecMask_next(ZSTD_VecMask val) {
         0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8,
                31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9
     };
-       return multiplyDeBruijnBitPosition[((U32)((v & -(int)v) * 0x077CB531U)) >> 27];
+       return multiplyDeBruijnBitPosition[((U32)((val & -(int)val) * 0x077CB531U)) >> 27];
 #   endif
 }