Fix RET: actually pop number of values in stack
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2021-01-02 15:57:46 +01:00
parent 5ce8cfb3d8
commit eb9b13c7cc

View file

@ -78,7 +78,7 @@ namespace Instruction {
std::unique_ptr<Instruction> Ret::fromTokens(const Instruction::Instruction::parseOperatorResult &op,
const std::vector<Token> &tokens) {
return std::make_unique<Ret>();
return std::make_unique<Ret>(tokens.empty() ? 0 : tokens.at(0).getNumericValue());
}
Ret::Ret(uint32_t count) {