Skip to contentSkip to conversation

parser_bison: fix rshift statement expression.

PATCH Applied Jeremy Sowden 2 participants 2 messages Mar 9, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parser_bison: fix rshift statement expression.

The RHS of RSHIFT statement expressions should be primary_stmt_expr, not primary_rhs_expr.

Fixes dccab4f646b4 ("parser_bison: consolidate stmt_expr rule")
---
 src/parser_bison.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/parser_bison.y +1 -1
index b37e9e565cc1..26ce4e089e1e 100644
@@ -3022,7 +3022,7 @@ shift_stmt_expr		:	primary_stmt_expr
 			{
 				$$ = binop_expr_alloc(&@$, OP_LSHIFT, $1, $3);
 			}
-			|	shift_stmt_expr		RSHIFT		primary_rhs_expr
+			|	shift_stmt_expr		RSHIFT		primary_stmt_expr
 			{
 				$$ = binop_expr_alloc(&@$, OP_RSHIFT, $1, $3);
 			}
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Jeremy Sowden

The RHS of RSHIFT statement expressions should be primary_stmt_expr, not primary_rhs_expr.

Applied, thanks.