diff --git a/00_pi.c b/00_pi.c index 6ea47c1..6d2d1ab 100644 --- a/00_pi.c +++ b/00_pi.c @@ -8,7 +8,7 @@ int main(int argc, char *argv[]) { return 1; } - size_t tiros = atoi(argv[1]); + size_t tiros = atol(argv[1]); size_t positivos = 0; diff --git a/01_pi_seed.c b/01_pi_seed.c index 4b9aeb5..d458ea1 100644 --- a/01_pi_seed.c +++ b/01_pi_seed.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) { srand(time(NULL)); - size_t tiros = atoi(argv[1]); + size_t tiros = atol(argv[1]); size_t positivos = 0; diff --git a/02_pi_openmp.c b/02_pi_openmp.c index 093734e..7af23af 100644 --- a/02_pi_openmp.c +++ b/02_pi_openmp.c @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) { printf("Hilos: %d\n", omp_get_max_threads()); - size_t tiros = atoi(argv[1]); + size_t tiros = atol(argv[1]); size_t positivos = 0;