Merge pull request #569 from iburinoc/testcorpus

Fix some more ARM compile errors
This commit is contained in:
Yann Collet 2017-02-27 10:19:37 -08:00 committed by GitHub
commit b78f211068

View File

@ -610,16 +610,15 @@ static U32 generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore,
/* The total length of all the matches */ /* The total length of all the matches */
size_t const remainingMatch = contentSize - literalsSize; size_t const remainingMatch = contentSize - literalsSize;
size_t excessMatch = 0; size_t excessMatch = 0;
U32 numSequences = 0;
U32 i; U32 i;
U32 numSequences;
const BYTE* literals = LITERAL_BUFFER; const BYTE* literals = LITERAL_BUFFER;
BYTE* srcPtr = frame->src; BYTE* srcPtr = frame->src;
if (literalsSize == contentSize) { if (literalsSize != contentSize) {
numSequences = 0;
} else {
/* each match must be at least MIN_SEQ_LEN, so this is the maximum /* each match must be at least MIN_SEQ_LEN, so this is the maximum
* number of sequences we can have */ * number of sequences we can have */
U32 const maxSequences = (U32)remainingMatch / MIN_SEQ_LEN; U32 const maxSequences = (U32)remainingMatch / MIN_SEQ_LEN;