From d72a974ce6532cc149846c415d7b4ace1a73992e Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 20 Apr 2017 13:03:36 +0800 Subject: [PATCH] *fixed a referencing bug with collection iteration in a FOR loop. --- HISTORY | 3 +++ core/my_basic.c | 1 + 2 files changed, 4 insertions(+) diff --git a/HISTORY b/HISTORY index ba0683e..c0a3bc2 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Apr. 20 2017 +Fixed a referencing bug with collection iteration in a FOR loop + Apr. 8 2017 Renamed the PEEK statement to BACK diff --git a/core/my_basic.c b/core/my_basic.c index 4a3fff9..8ed5859 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -10546,6 +10546,7 @@ static int _execute_ranged_for_loop(mb_interpreter_t* s, _ls_node_t** l, _var_t* break; } to_node = ast; + switch(range_ptr->type) { _REF_COLL(range_ptr) default: /* Do nothing */ break; } _to: ast = to_node;