-Resolved bug that made yield() not work in some situations, fixes #884

This commit is contained in:
Juan Linietsky 2015-01-06 00:39:35 -03:00
parent f75ae815d5
commit bd03562076
3 changed files with 22 additions and 2 deletions

View file

@ -528,7 +528,7 @@ int GDCompiler::_parse_expression(CodeGen& codegen,const GDParser::Node *p_expre
int ret = _parse_expression(codegen,on->arguments[i],slevel);
if (ret<0)
return ret;
if (ret&GDFunction::ADDR_TYPE_STACK<<GDFunction::ADDR_BITS) {
if (ret&(GDFunction::ADDR_TYPE_STACK<<GDFunction::ADDR_BITS)) {
slevel++;
codegen.alloc_stack(slevel);
}