From bb604486f1e60beb21e73110d27802b16b31bc59 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 19 Mar 2016 15:18:42 +0100 Subject: [PATCH] fixed clang warning --- lib/zstd_compress.c | 2 +- lib/zstd_decompress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zstd_compress.c b/lib/zstd_compress.c index e7c249bfe..7b2cc1437 100644 --- a/lib/zstd_compress.c +++ b/lib/zstd_compress.c @@ -62,7 +62,7 @@ /*-************************************* * Constants ***************************************/ -static const U32 g_searchStrength = 8; +static const U32 g_searchStrength = 8; /* control skip over incompressible data */ /*-************************************* diff --git a/lib/zstd_decompress.c b/lib/zstd_decompress.c index ecc4329bd..887348294 100644 --- a/lib/zstd_decompress.c +++ b/lib/zstd_decompress.c @@ -342,7 +342,7 @@ typedef struct size_t ZSTD_getcBlockSize(const void* src, size_t srcSize, blockProperties_t* bpPtr) { const BYTE* const in = (const BYTE* const)src; - size_t cSize; + U32 cSize; if (srcSize < ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);