]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix LLU->ULL 3929/head
authorYann Collet <cyan@fb.com>
Mon, 4 Mar 2024 08:16:01 +0000 (00:16 -0800)
committerYann Collet <cyan@fb.com>
Mon, 4 Mar 2024 08:16:01 +0000 (00:16 -0800)
LLU is a correct prefix according to C99 & C11 standards (but not C90).
However, older versions of Visual Studio do not work with it.
Replace by ULL, which doesn't have this issue.

Fixes https://github.com/facebook/zstd/issues/3647

tests/fuzzer.c

index 6c1f58df7dba053df2516593b0a8345077876101..09349218111af094f46c9365541a2d4ef4989924 100644 (file)
@@ -531,7 +531,7 @@ static void test_decompressBound(unsigned tnb)
             CHECK_EQ( ZSTD_flushStream(cctx, &out), 0 );
         }
         CHECK_EQ( ZSTD_endStream(cctx, &out), 0 );
-        CHECK( ZSTD_decompressBound(outBuffer, out.pos) > 0x100000000LLU /* 4 GB */ );
+        CHECK( ZSTD_decompressBound(outBuffer, out.pos) > 0x100000000ULL /* 4 GB */ );
         ZSTD_freeCCtx(cctx);
         free(outBuffer);
     }