shithub: scc

Download patch

ref: 02abca68e91999009c0f3ef154fb99f39c212c2c
parent: 496a51ccfcc302614f6647cc75478f5a126ff5fc
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 16 07:09:20 EST 2019

[cc1] Remove redundant atoi()

Atoi was called with the same argument only one line
before, so the value can be reused.

--- a/src/cc1/cpp.c
+++ b/src/cc1/cpp.c
@@ -264,7 +264,7 @@
 		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]);