shithub: scc

Download patch

ref: 04331f0a06574d3af45fe75f7264dd4a709cb5fc
parent: 7144207c5a7cc559901322704be568daf4df2eaf
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Mar 17 17:11:21 EDT 2015

Fix parentheses expressions

The expext() call in cast() was before of the expression, so
the valid string for the parser was: () expr.

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -598,8 +598,8 @@
 		}
 		break;
 	default:
-		expect(')');
 		np2 = expr();
+		expect(')');
 		break;
 	}