shithub: scc

Download patch

ref: 85281b2ebed2fb91e230b7b4446e7742a646bb7b
parent: 321503bfb9a99efe5eea4a9a2ee5c795aa7274ac
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Sep 30 06:19:54 EDT 2016

[cc1] Fix call to parithmetic()

The order of the parameters was incorrect, meaning that left and right
children were exchanged.

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -348,7 +348,7 @@
 		case OA_SUB:
 		case OINC:
 		case ODEC:
-			return parithmetic(op, rp, lp);
+			return parithmetic(op, lp, rp);
 		}
 	}
 	errorp("incorrect arithmetic operands");