summaryrefslogtreecommitdiff
path: root/xdelta3/testing/regtest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/testing/regtest.cc')
-rw-r--r--xdelta3/testing/regtest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/xdelta3/testing/regtest.cc b/xdelta3/testing/regtest.cc
index d31f6b5..d5864d6 100644
--- a/xdelta3/testing/regtest.cc
+++ b/xdelta3/testing/regtest.cc
@@ -46,7 +46,6 @@ void InMemoryEncodeDecode(const FileSpec &source_file,
46 xd3_init_config(&decode_config, XD3_ADLER32); 46 xd3_init_config(&decode_config, XD3_ADLER32);
47 47
48 encode_config.winsize = Constants::WINDOW_SIZE; 48 encode_config.winsize = Constants::WINDOW_SIZE;
49 encode_config.srcwin_maxsz = options.encode_srcwin_maxsz;
50 49
51 // TODO! the smatcher setup isn't working, 50 // TODO! the smatcher setup isn't working,
52// if (options.large_cksum_step) { 51// if (options.large_cksum_step) {
@@ -64,6 +63,8 @@ void InMemoryEncodeDecode(const FileSpec &source_file,
64 encode_source.blksize = Constants::BLOCK_SIZE; 63 encode_source.blksize = Constants::BLOCK_SIZE;
65 decode_source.blksize = Constants::BLOCK_SIZE; 64 decode_source.blksize = Constants::BLOCK_SIZE;
66 65
66 encode_source.max_winsize = options.encode_srcwin_maxsz;
67
67 xd3_set_source (&encode_stream, &encode_source); 68 xd3_set_source (&encode_stream, &encode_source);
68 xd3_set_source (&decode_stream, &decode_source); 69 xd3_set_source (&decode_stream, &decode_source);
69 70