commit 02abca68e91999009c0f3ef154fb99f39c212c2c
parent 496a51ccfcc302614f6647cc75478f5a126ff5fc
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]);