Skip to content
Snippets Groups Projects
Commit fe5fdbfa authored by LITIERE MALRIC's avatar LITIERE MALRIC
Browse files

size_t

parent dd402b93
Branches
No related merge requests found
......@@ -11,7 +11,7 @@ int main(int argc, char *argv[])
exit(1);
}
long taille = (long)atoi(argv[1]);
size_t taille = (size_t)atoi(argv[1]);
char typeTable = argv[2][0];
char typeAlgo = argv[3][0];
long *tab = malloc(sizeof(long) * taille);
......
......@@ -13,7 +13,7 @@ void affichertab(long *T, int s)
}
void genTable(long *T, long taille, char type, long N)
void genTable(long *T, long taille, char type, size_t N)
{
int mid = (int)(taille / 2);
......
......@@ -2,4 +2,4 @@
#include <stdlib.h>
void affichertab(long* T, int s);
void genTable(long *T, long taille, char type, long N);
\ No newline at end of file
void genTable(long *T, long taille, char type, size_t N);
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment