Skip to content

Commit d2390e5

Browse files
committed
Fix nullptr access on interpolated parents
Fixes #3024
1 parent 081bbbf commit d2390e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/eval.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ namespace Sass {
690690
b->op(), s_l->last(), b->right());
691691
bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // unverified
692692
for (size_t i = 0; i < s_l->length() - 1; ++i) {
693-
ret_schema->append(Cast<PreValue>(s_l->at(i)->perform(this)));
693+
ret_schema->append(s_l->at(i)->perform(this));
694694
}
695-
ret_schema->append(Cast<PreValue>(bin_ex->perform(this)));
695+
ret_schema->append(bin_ex->perform(this));
696696
return ret_schema->perform(this);
697697
}
698698
}
@@ -703,9 +703,9 @@ namespace Sass {
703703
Binary_Expression_Obj bin_ex = SASS_MEMORY_NEW(Binary_Expression, b->pstate(),
704704
b->op(), b->left(), s_r->first());
705705
bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // verified
706-
ret_schema->append(Cast<PreValue>(bin_ex->perform(this)));
706+
ret_schema->append(bin_ex->perform(this));
707707
for (size_t i = 1; i < s_r->length(); ++i) {
708-
ret_schema->append(Cast<PreValue>(s_r->at(i)->perform(this)));
708+
ret_schema->append(s_r->at(i)->perform(this));
709709
}
710710
return ret_schema->perform(this);
711711
}

0 commit comments

Comments
 (0)