Skip to content

Commit

Permalink
huge error that took me 2 days to figure out...
Browse files Browse the repository at this point in the history
  • Loading branch information
aymenkhs committed Mar 16, 2021
1 parent 93a4804 commit 38631a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ StoreTime * tab_execution(int * (* function)(long*, long), long * tab, int taill
printf("nombre %d\n\n", results[i].num);

ordered_tab = generer_bon_ordre(tab[i]);
results[i].time_ordered = execution_time(function, ordered_tab, taille);
results[i].time_ordered = execution_time(function, ordered_tab, tab[i]);
free(ordered_tab);

inverse_tab = generer_ordre_inverse(tab[i]);
results[i].time_inverse = execution_time(function, inverse_tab, taille);
results[i].time_inverse = execution_time(function, inverse_tab, tab[i]);
free(inverse_tab);

random_tab = generer_random(tab[i]);
results[i].time_random = execution_time(function, random_tab, taille);
results[i].time_random = execution_time(function, random_tab, tab[i]);
free(random_tab);
}
return results;
Expand Down

0 comments on commit 38631a2

Please sign in to comment.