From d40ec7abf63206cbe702ebc124729eafd48bbf93 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Sun, 1 Nov 2020 11:41:07 +0800 Subject: [PATCH] fixed over boudary --- hikyuu_cpp/hikyuu/Stock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikyuu_cpp/hikyuu/Stock.cpp b/hikyuu_cpp/hikyuu/Stock.cpp index bfccc4d9..9fd0b28e 100644 --- a/hikyuu_cpp/hikyuu/Stock.cpp +++ b/hikyuu_cpp/hikyuu/Stock.cpp @@ -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; }