You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem was that the behaviors of array_*_iter_remove and deque_*_iter_remove functions were kind of inconsistent with their list and slist equivalents, in that you could call iter_remove repeatedly until you've exausted the array, and thus possibly running into an CC_ERR_OUT_OF_RANGE, which is not the case with list equivalents where you can only call iter_remove once after calling iter_next. Basically array_iter_remove was allowing you to 'jump ahead' of the iterator which is not something that should ever happen.
I've added a fix for this. It should be more sensible now :-)
Different statuses are returned in the same situation - when iterator reaches end of array:
Which status should be used to be consistent? I'd suggest using CC_ITER_END whenever an iterator is involved.
The text was updated successfully, but these errors were encountered: