mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 19:08:48 +08:00
fixed over boudary
This commit is contained in:
parent
06df131319
commit
d40ec7abf6
@ -597,7 +597,7 @@ KRecordList Stock::getKRecordList(const KQuery& query) const {
|
||||
}
|
||||
|
||||
size_t total = m_data->pKData[query.kType()]->size();
|
||||
if (start_ix >= end_ix || start_ix > total) {
|
||||
if (start_ix >= end_ix || start_ix >= total) {
|
||||
HKU_WARN("Invalid param! ({}, {})", start_ix, end_ix);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user