*fixed a wrong variable manipulation bug with the PRINT statement.
This commit is contained in:
parent
9cad7c6992
commit
ff999bf97f
1
HISTORY
1
HISTORY
@ -2,6 +2,7 @@ Feb. 25 2016
|
|||||||
Improved importing directory detection
|
Improved importing directory detection
|
||||||
Fixed a bug with the END and RETURN statement with FOR loop
|
Fixed a bug with the END and RETURN statement with FOR loop
|
||||||
Fixed an array index calculation bug
|
Fixed an array index calculation bug
|
||||||
|
Fixed a wrong variable manipulation bug with the PRINT statement
|
||||||
|
|
||||||
Feb. 24 2016
|
Feb. 24 2016
|
||||||
Added a TO_ARRAY statement
|
Added a TO_ARRAY statement
|
||||||
|
@ -14766,9 +14766,6 @@ static int _std_print(mb_interpreter_t* s, void** l) {
|
|||||||
|
|
||||||
mb_assert(s && l);
|
mb_assert(s && l);
|
||||||
|
|
||||||
val_ptr = &val_obj;
|
|
||||||
_MAKE_NIL(val_ptr);
|
|
||||||
|
|
||||||
++s->no_eat_comma_mark;
|
++s->no_eat_comma_mark;
|
||||||
ast = (_ls_node_t*)*l;
|
ast = (_ls_node_t*)*l;
|
||||||
ast = ast->next;
|
ast = ast->next;
|
||||||
@ -14778,6 +14775,8 @@ static int _std_print(mb_interpreter_t* s, void** l) {
|
|||||||
|
|
||||||
obj = (_object_t*)ast->data;
|
obj = (_object_t*)ast->data;
|
||||||
do {
|
do {
|
||||||
|
val_ptr = &val_obj;
|
||||||
|
_MAKE_NIL(val_ptr);
|
||||||
switch(obj->type) {
|
switch(obj->type) {
|
||||||
case _DT_VAR:
|
case _DT_VAR:
|
||||||
if(obj->data.variable->data->type == _DT_ROUTINE) {
|
if(obj->data.variable->data->type == _DT_ROUTINE) {
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user