X-Git-Url: https://git.auder.net/?p=cgds.git;a=blobdiff_plain;f=src%2FList.c;h=35e57397b873647ee76adb4da40e021d80f4f2d7;hp=b78af26a557337b8ebfc166534432ffdccb4db03;hb=HEAD;hpb=588a2232cf24183218d88c85003f2e6093f942ed 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); }