summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/il.txt2
-rw-r--r--parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/il.txt b/doc/il.txt
index 14bd0c8..9179eda 100644
--- a/doc/il.txt
+++ b/doc/il.txt
@@ -709,7 +709,7 @@ single-precision floating point number `%f` into `%rs`.
 ~~~~~~
 
     `bnf
-    CALL := %IDENT '=' ( BASETY | :IDENT ) 'call' VAL PARAMS
+    CALL := [ %IDENT '=' ( BASETY | :IDENT ) ] 'call' VAL PARAMS
 
     PARAMS := '(' ( (BASETY | :IDENT) %IDENT ), ')'
 
diff --git a/parse.c b/parse.c
index 4c3a974..ed88114 100644
--- a/parse.c
+++ b/parse.c
@@ -508,7 +508,7 @@ parseline(PState ps)
 		err("label or } expected");
 	switch (t) {
 	default:
-		if (isstore(t)) {
+		if (isstore(t) || t == Tcall) {
 			/* operations without result */
 			r = R;
 			k = Kw;