From 5cc85cf18398cde78cef206a4f0ef381c0d91846 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Sat, 10 Dec 2016 19:31:55 -0800 Subject: [PATCH] Switch uint64_t to U64 --- tests/longmatch.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/longmatch.c b/tests/longmatch.c index b99dccc6..46dcbc77 100644 --- a/tests/longmatch.c +++ b/tests/longmatch.c @@ -1,8 +1,10 @@ #define ZSTD_STATIC_LINKING_ONLY -#include +#include "zstd.h" +#include "mem.h" #include #include #include +#include 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);