Skip to content

Commit

Permalink
Correção de bug na adição de uma lista sobre outra
Browse files Browse the repository at this point in the history
  • Loading branch information
hfcipriano committed Nov 6, 2016
1 parent be181b2 commit d44a949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scr/tad/lista/lista.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ void addListaFinal(lista *l, lista *nova){
}
else {
l->folha->proximo = nova->raiz;
nova->raiz->anterior = l->folha;
if(nova->raiz != NULL) {
nova->raiz->anterior = l->folha;
}
l->qtd = l->qtd + nova->qtd;
}
}

0 comments on commit d44a949

Please sign in to comment.