[apps] Sequence: fix bug due to const char * comparison

This commit is contained in:
Émilie Feral
2018-01-02 13:27:50 +01:00
committed by EmilieNumworks
parent bf9d9728e8
commit 6c070b63fc

View File

@@ -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);
}