summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/testing/regtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdelta3/testing/regtest.cc b/xdelta3/testing/regtest.cc
index 0c21b2d..b2cdaa5 100644
--- a/xdelta3/testing/regtest.cc
+++ b/xdelta3/testing/regtest.cc
@@ -815,7 +815,7 @@ void TestSmallStride() {
815 815
816 IF_DEBUG1(DP(RINT "[stride=%d] changes=%u adds=%"Q"u\n", 816 IF_DEBUG1(DP(RINT "[stride=%d] changes=%u adds=%"Q"u\n",
817 s, changes, delta.AddedBytes())); 817 s, changes, delta.AddedBytes()));
818 double allowance = Constants::BLOCK_SIZE < 8192 ? 3.0 : 1.1; 818 double allowance = Constants::BLOCK_SIZE < 8192 || s < 30 ? 3.0 : 1.1;
819 CHECK_GE(allowance * changes, (double)delta.AddedBytes()); 819 CHECK_GE(allowance * changes, (double)delta.AddedBytes());
820 } 820 }
821} 821}