summary refs log tree commit diff
path: root/src/arith_yacc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arith_yacc.c')
-rw-r--r--src/arith_yacc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arith_yacc.c b/src/arith_yacc.c
index 74b95f8..6c5a720 100644
--- a/src/arith_yacc.c
+++ b/src/arith_yacc.c
@@ -253,7 +253,7 @@ static intmax_t or(int token, union yystype *val, int op, int noeval)
 
 	b = or(token, val, yylex(), noeval | !!a);
 
-	return a | b;
+	return a || b;
 }
 
 static intmax_t cond(int token, union yystype *val, int op, int noeval)