X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=src%2FList.c;h=35e57397b873647ee76adb4da40e021d80f4f2d7;hb=HEAD;hp=b78af26a557337b8ebfc166534432ffdccb4db03;hpb=e45132acdb58c076d5e06849fa51c26de9a7486d;p=cgds.git diff --git a/src/List.c b/src/List.c index b78af26..35e5739 100644 --- a/src/List.c +++ b/src/List.c @@ -190,12 +190,12 @@ void listI_remove(ListIterator* listI, Direction direction) ListCell* toTrash = listI->current; switch (direction) { - case FORWARD: - listI->current = listI->current->next; - break; - case BACKWARD: - listI->current = listI->current->prev; - break; + case FORWARD: + listI->current = listI->current->next; + break; + case BACKWARD: + listI->current = listI->current->prev; + break; } list_remove(listI->list, toTrash); }