From d61bb74f2044fed546de21f5b1e39737d79b8e48 Mon Sep 17 00:00:00 2001 From: Przemyslaw Skibinski Date: Mon, 7 Nov 2016 14:14:42 +0100 Subject: [PATCH] updated declaration of LZ4F_freeDecompressionContext --- appveyor.yml | 2 +- lib/lz4frame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1e95ebb..85d8ea2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,6 +52,7 @@ build_script: make -C tests fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" ) ) + - if [%COMPILER%]==[gcc] (COPY tests\fullbench.exe programs\) - if [%COMPILER%]==[visual] ( ECHO *** && ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% && @@ -84,6 +85,5 @@ test_script: lz4 -i1b10 lz4.exe && lz4 -i1b15 lz4.exe && echo lz4 tested && - CD ..\tests && fullbench.exe -i1 fullbench.exe ) diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 6b6e320..43bc23c 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -274,7 +274,7 @@ typedef struct { * That is, it should be == 0 if decompression has been completed fully and correctly. */ LZ4FLIB_API LZ4F_errorCode_t LZ4F_createDecompressionContext(LZ4F_dctx** dctxPtr, unsigned version); -LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx); +LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* const dctx); /*====== Decompression ======*/