Commit 51c08e66 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed 'hasMoreInstructions'

parent cbae8459
......@@ -573,7 +573,7 @@ bool KumirVM::hasMoreInstructions() const
if (stack_contexts.size()>0) {
const std::vector<Bytecode::Instruction> * program = stack_contexts.at(0).program;
int IP = stack_contexts.at(0).IP;
return program && IP < program->size();
return program && IP < int(program->size());
}
else {
return false;
......
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