fixed checksum

dev
Yann Collet 2016-09-06 09:54:22 +02:00
parent a7737f6a60
commit b624922b14
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
v1.0.1
New : contrib/pzstd, parallel version of zstd, by Nick Terrell
added : NetBSD install target (#338)
Improved : variable compression speed improvements on batches of small files.
Fixed : CLI -d output to stdout by default when input is stdin (#322)
Fixed : CLI correctly detects console on Mac OS-X
Fixed : Legacy decoders use unified error codes (#341), reported by benrg

View File

@ -247,7 +247,8 @@ static size_t ZSTD_continueCCtx(ZSTD_CCtx* cctx, ZSTD_parameters params, U64 fra
cctx->dictID = 0;
cctx->loadedDictEnd = 0;
{ int i; for (i=0; i<ZSTD_REP_NUM; i++) cctx->rep[i] = repStartValue[i]; }
cctx->seqStore.litLengthSum = 0; /* force reset stats */
cctx->seqStore.litLengthSum = 0; /* force reset of btopt stats */
XXH64_reset(&cctx->xxhState, 0);
return 0;
}