*fixed an invalid iterator issue with ranged list.

This commit is contained in:
paladin-t 2016-04-18 12:53:21 +08:00
parent 3e0a96c147
commit a42371a6ab
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
Apr. 18 2016
Fixed an invalid iterator issue with ranged list
Apr. 15 2016
Added some error raising when met incomplete routine or class

View File

@ -6404,6 +6404,12 @@ static _list_it_t* _move_list_it_next(_list_it_t* it) {
if(!it || !it->list || !it->list->list || (!it->curr.node && !it->list->range_begin))
goto _exit;
if(it->list->lock < 0) {
result = it;
goto _exit;
}
if(it->list->range_begin) {
if(it->list->lock)
it->curr.ranging += sgn(it->list->count);