Merge pull request #364 from kiwix/issue363

Fix for the failing assertion in the ByteRange constructor
This commit is contained in:
Matthieu Gautier 2020-06-03 10:43:16 +02:00 committed by GitHub
commit bf93d10cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ ByteRange::ByteRange(Kind kind, int64_t first, int64_t last)
{
assert(kind != NONE);
assert(first >= 0);
assert(last >= first);
assert(last >= first || (first == 0 && last == -1));
}
ByteRange::ByteRange(int64_t suffix_length)