Fix RET: actually pop number of values in stack
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5ce8cfb3d8
commit
eb9b13c7cc
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue