fixed benchmark autogen

This commit is contained in:
Yann Collet committed 2015-12-01 01:31:17 +01:00
1 parent 0338635e93
commit d062f1379c
4 files changed
+14 -76

No files matched your search

+1
View File
@@ -173,6 +173,7 @@ void RDG_genBlock(void* buffer, size_t buffSize, size_t prefixSize, double match
U32 repeatOffset = (RDG_rand(seed) & 15) == 2;
if (repeatOffset) offset = prevOffset;
if (offset > pos) offset = (U32)pos;
prevOffset = offset;
match = pos - offset;
d = pos + length;
if (d > buffSize) d = buffSize;