From 401907e94732aa10c622fa255a42e90e18ba1bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Santisi?= Date: Thu, 13 Jun 2024 05:17:17 +0000 Subject: [PATCH] atoi -> atol --- 00_pi.c | 2 +- 01_pi_seed.c | 2 +- 02_pi_openmp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;