From 706218d18f028cffadee91a4b85ab87f9779fc77 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Wed, 18 Nov 2015 14:11:58 -0500 Subject: [PATCH] atoi(): Cast return value to int --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index ff10da14c5..d792d3b554 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -180,7 +180,7 @@ unsigned long long strtoull(const char *, char **, int); #endif double_t strtod(const char *, char **); -#define atoi(nptr) strtol((nptr), NULL, 10) +#define atoi(nptr) ((int)strtol((nptr), NULL, 10)) #define atol(nptr) strtol((nptr), NULL, 10) #ifdef CONFIG_HAVE_LONG_LONG #define atoll(nptr) strtoll((nptr), NULL, 10)