mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[Sequence] Fixed computation error and asan fails
Change-Id: Ib3a619d29bee5cc6f10b939ee066459a5b135c5d
This commit is contained in:
committed by
Émilie Feral
parent
86d0c19293
commit
bf95b460c3
@@ -33,7 +33,7 @@ const Expression SequenceCacheContext<T>::expressionForSymbolAbstract(const Poin
|
||||
Ion::Storage::Record record = m_sequenceContext->sequenceStore()->recordAtIndex(index);
|
||||
if (!record.isNull()) {
|
||||
Sequence * seq = m_sequenceContext->sequenceStore()->modelForRecord(record);
|
||||
rank.replaceSymbolWithExpression(Symbol::Builder(UCodePointUnknown), Float<T>::Builder(m_nValue));
|
||||
rank.replaceSymbolWithExpression(Symbol::Builder(UCodePointUnknown), Float<T>::Builder(unknownSymbolValue));
|
||||
T n = PoincareHelpers::ApproximateToScalar<T>(rank, this);
|
||||
// In case the sequence referenced is not defined or if the rank is not an int, return NAN
|
||||
if (seq->fullName() != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user