]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Switch uint64_t to U64
authorNick Terrell <terrelln@fb.com>
Sun, 11 Dec 2016 03:31:55 +0000 (19:31 -0800)
committerNick Terrell <terrelln@fb.com>
Sun, 11 Dec 2016 03:31:55 +0000 (19:31 -0800)
tests/longmatch.c

index b99dccc6fcd33e4901298d3901753c8da07f02c0..46dcbc77a29ba7382457de23337967e825e636fd 100644 (file)
@@ -1,8 +1,10 @@
 #define ZSTD_STATIC_LINKING_ONLY
-#include <zstd.h>
+#include "zstd.h"
+#include "mem.h"
 #include <stdio.h>
 #include <stddef.h>
 #include <stdlib.h>
+#include <stdint.h>
 
 void compress(ZSTD_CStream *ctx, ZSTD_outBuffer out, const void *data, size_t size) {
   ZSTD_inBuffer in = { data, size, 0 };
@@ -39,8 +41,8 @@ int main() {
   rc = ZSTD_initCStream_advanced(ctx, NULL, 0, params, 0);
   if (ZSTD_isError(rc)) { return 2; }
   {
-    uint64_t compressed = 0;
-    const uint64_t toCompress = ((uint64_t)1) << 33;
+    U64 compressed = 0;
+    const U64 toCompress = ((U64)1) << 33;
     const size_t size = 1 << windowLog;
     size_t pos = 0;
     char *srcBuffer = (char*) malloc(1 << windowLog);