*fixed a processing bug when printing with a native routine of a class instance.

This commit is contained in:
Wang Renxin 2017-03-08 11:30:36 +08:00
parent ce42faff09
commit ed4348ad48
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Mar. 8 2017
Fixed a processing bug when printing with a native routine of a class instance
Feb. 28 2017
Fixed an issue with reference count manipulation of a value
@ -13,7 +16,7 @@ Feb. 16 2017
Improved meta function
Feb. 14 2017
Fixed a wrong routing unreferencing bug
Fixed a wrong routine unreferencing bug
Feb. 10 2017
Fixed a parameter lookup bug when calling a sub routine

View File

@ -10026,7 +10026,10 @@ static _object_t* _eval_var_in_print(mb_interpreter_t* s, _object_t** val_ptr, _
mb_make_nil(s->running_context->intermediate_value);
}
**val_ptr = tmp;
if(*ast) *ast = (*ast)->prev;
if(obj->data.routine->type != _IT_NATIVE) {
if(*ast)
*ast = (*ast)->prev;
}
break;
case _DT_VAR: