commit 7439ac7e6cb71fc5a3733d17f407e5446a631bc4
parent c229f8349041e683cfad27848a21d4c6cf99a6b9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 16 Jan 2019 12:09:20 +0000
[cc1] Remove redundant atoi()
Atoi was called with the same argument only one line
before, so the value can be reused.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cc1/cpp.c b/src/cc1/cpp.c
@@ -264,7 +264,7 @@ expand(char *begin, Symbol *sym)
return 1;
n = atoi(s);
- if (!parsepars(arguments, arglist, atoi(s)))
+ if (!parsepars(arguments, arglist, n))
return 0;
for (i = 0; i < n; ++i)
DBG("MACRO par%d:%s", i, arglist[i]);