summaryrefslogtreecommitdiff
path: root/xdelta3/testing/file.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2008-07-06 00:39:55 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2008-07-06 00:39:55 +0000
commite82b0cd004eadfefb9465713acbe6b62a3f99f6f (patch)
tree2fc6c947d08abf65b726c0efd2343afdce37a8d5 /xdelta3/testing/file.h
parentf946a79d77bd04e0d671b3c66e926d0c1ca3a213 (diff)
Fix the modify test.
Diffstat (limited to 'xdelta3/testing/file.h')
-rw-r--r--xdelta3/testing/file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/testing/file.h b/xdelta3/testing/file.h
index dae97de..b775f4f 100644
--- a/xdelta3/testing/file.h
+++ b/xdelta3/testing/file.h
@@ -211,8 +211,8 @@ inline void BlockIterator::Get(Block *block) const {
211 gen.Rand32(); 211 gen.Rand32();
212 } 212 }
213 213
214 for (size_t i = seg_offset; i < pos->second.length; i++) { 214 for (size_t i = seg_offset;
215 CHECK_LT(got, blksize_); 215 i < pos->second.length && got < blksize_; i++) {
216 block->data_[got++] = gen.Rand32(); 216 block->data_[got++] = gen.Rand32();
217 } 217 }
218 218