mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00
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…
x
Reference in New Issue
Block a user