mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #364 from kiwix/issue363
Fix for the failing assertion in the ByteRange constructor
This commit is contained in:
commit
bf93d10cde
|
@ -65,7 +65,7 @@ ByteRange::ByteRange(Kind kind, int64_t first, int64_t last)
|
||||||
{
|
{
|
||||||
assert(kind != NONE);
|
assert(kind != NONE);
|
||||||
assert(first >= 0);
|
assert(first >= 0);
|
||||||
assert(last >= first);
|
assert(last >= first || (first == 0 && last == -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteRange::ByteRange(int64_t suffix_length)
|
ByteRange::ByteRange(int64_t suffix_length)
|
||||||
|
|
Loading…
Reference in New Issue