commit 2db536693e12b92e7f636958973328105dd0ea5e
parent a4cb78cee5275f797d66793149a4d642e6c70f0d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 10 Oct 2014 10:11:26 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cc1/stmt.c b/cc1/stmt.c
@@ -341,8 +341,7 @@ stmt(Symbol *lbreak, Symbol *lcont, Caselist *lswitch)
case '@':
next();
emitprint(expr());
- break;
- next();
+ return;
}
(*fun)(lbreak, lcont, lswitch);
}