Fix logical error

This commit is contained in:
Igor Markelov 2024-05-22 20:50:11 +00:00
parent cac53af37c
commit 63d7a59bf8

View File

@ -41,7 +41,7 @@ struct EqualRange
size_t from;
size_t to; /// exclusive
EqualRange() = default;
EqualRange(size_t from_, size_t to_) : from(from_), to(to_) { chassert(from < to); }
EqualRange(size_t from_, size_t to_) : from(from_), to(to_) { chassert(from <= to); }
size_t size() const { return to - from; }
};