shithub: scc

Download patch

ref: 2db536693e12b92e7f636958973328105dd0ea5e
parent: a4cb78cee5275f797d66793149a4d642e6c70f0d
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Oct 10 06:11:26 EDT 2014

Fix '@' operator

This operator is used when we want to print back the result of an
expression, and it is only used in the interpreter for boxer,
but the code was calling fun pointer that in this case has not a
value.

--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -341,8 +341,7 @@
 	case '@':
 		next();
 		emitprint(expr());
-		break;
-		next();
+		return;
 	}
 	(*fun)(lbreak, lcont, lswitch);
 }