Commit 243b9ccf authored by Victor Yacovlev's avatar Victor Yacovlev

RUN: Fixed external function call 0-register store value

parent bd34e6d0
......@@ -1154,8 +1154,10 @@ void KumirVM::do_call(uint8_t mod, uint16_t alg)
error_ = localError;
}
else {
if (algResult.isValid())
if (algResult.isValid()) {
valuesStack_.push(Variable(algResult));
register0_ = algResult;
}
}
if (stacksMutex_) stacksMutex_->unlock();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment