mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
Fix logical error
This commit is contained in:
parent
cac53af37c
commit
63d7a59bf8
@ -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; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user