PRICELIST 允许discard后,存在 nan 值

This commit is contained in:
fasiondog 2024-03-09 22:39:16 +08:00
parent f844ce7e1c
commit d63cb48ce7

View File

@ -47,11 +47,6 @@ void IPriceList::_calculate(const Indicator& data) {
for (size_t i = m_discard; i < total; ++i) { for (size_t i = m_discard; i < total; ++i) {
dst[i] = x[i]; dst[i] = x[i];
} }
for (size_t i = m_discard; i < total && std::isnan(get(i)); ++i) {
m_discard++;
}
return; return;
} }