patterns: Fixed setting variables in functions
This commit is contained in:
parent
71be77c54b
commit
17d5a5309a
@ -95,7 +95,7 @@ namespace hex::pl {
|
|||||||
}
|
}
|
||||||
}, value);
|
}, value);
|
||||||
|
|
||||||
this->getStack().back() = castedLiteral;
|
this->getStack()[pattern->getOffset()] = castedLiteral;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<std::vector<PatternData*>> Evaluator::evaluate(const std::vector<ASTNode*> &ast) {
|
std::optional<std::vector<PatternData*>> Evaluator::evaluate(const std::vector<ASTNode*> &ast) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user