*fixed an invalid iterator issue with ranged list.
This commit is contained in:
parent
3e0a96c147
commit
a42371a6ab
3
HISTORY
3
HISTORY
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user