mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps] Sequence: fix bug due to const char * comparison
This commit is contained in:
committed by
EmilieNumworks
parent
bf9d9728e8
commit
6c070b63fc
@@ -298,7 +298,7 @@ bool Sequence::isEmpty() {
|
||||
template<typename T>
|
||||
T Sequence::templatedApproximateAtAbscissa(T x, SequenceContext * sqctx) const {
|
||||
T n = std::round(x);
|
||||
int sequenceIndex = name() == SequenceStore::k_sequenceNames[0] ? 0 : 1;
|
||||
int sequenceIndex = name()[0] == SequenceStore::k_sequenceNames[0][0] ? 0 : 1;
|
||||
if (sqctx->iterateUntilRank<T>(n)) {
|
||||
return sqctx->valueOfSequenceAtPreviousRank<T>(sequenceIndex, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user