summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
authorJosh MacDonald <josh.macdonald@gmail.com>2015-11-03 23:32:22 -0800
committerJosh MacDonald <josh.macdonald@gmail.com>2015-11-03 23:32:22 -0800
commitcaed7d59df403dae76121baa711bb4129f42de3e (patch)
tree0e5c25f9c0f60e4f0432e2db0c68af6391dfecee /xdelta3/xdelta3.h
parentc948e08db789d90547b45ce0a5dcbec9225bad57 (diff)
Simplify frontier_pos logic, fix XD3_TOOFARBACK assertion failure exposed through go/src/regtest.go (64bithash branch) testing
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 11bbdb8..1aef6be 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -783,10 +783,9 @@ struct _xd3_source
783 xoff_t max_blkno; /* Maximum block, if eof is known, 783 xoff_t max_blkno; /* Maximum block, if eof is known,
784 * otherwise, equals frontier_blkno 784 * otherwise, equals frontier_blkno
785 * (initially 0). */ 785 * (initially 0). */
786 xoff_t frontier_blkno; /* If eof is unknown, the next 786 xoff_t frontier_pos; /* The next source position to be
787 * source position to be read. 787 * read, equal to ((max_blkno+1)
788 * Otherwise, equal to 788 * << shiftby) */
789 * max_blkno. */
790 usize_t onlastblk; /* Number of bytes on max_blkno */ 789 usize_t onlastblk; /* Number of bytes on max_blkno */
791 int eof_known; /* Set to true when the first 790 int eof_known; /* Set to true when the first
792 * partial block is read. */ 791 * partial block is read. */