From f250956cb2a8dca13fc0242affc225f9d6983604 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Thu, 20 Dec 2018 11:41:58 -0500 Subject: bash-5.0-rc1 release --- expr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'expr.c') diff --git a/expr.c b/expr.c index 3f086b63..9edc8d9c 100644 --- a/expr.c +++ b/expr.c @@ -214,7 +214,7 @@ static intmax_t exp5 __P((void)); static intmax_t exp4 __P((void)); static intmax_t expshift __P((void)); static intmax_t exp3 __P((void)); -static intmax_t exp2 __P((void)); +static intmax_t expmuldiv __P((void)); static intmax_t exppower __P((void)); static intmax_t exp1 __P((void)); static intmax_t exp0 __P((void)); @@ -342,7 +342,7 @@ expr_bind_variable (lhs, rhs) #if defined (ARRAY_VARS) /* This is similar to the logic in arrayfunc.c:valid_array_subscript when you pass VA_NOEXPAND. */ -static char * +static int expr_skipsubscript (vp, cp) char *vp, *cp; { @@ -858,14 +858,14 @@ exp3 () { register intmax_t val1, val2; - val1 = exp2 (); + val1 = expmuldiv (); while ((curtok == PLUS) || (curtok == MINUS)) { int op = curtok; readtok (); - val2 = exp2 (); + val2 = expmuldiv (); if (op == PLUS) val1 += val2; @@ -877,7 +877,7 @@ exp3 () } static intmax_t -exp2 () +expmuldiv () { register intmax_t val1, val2; #if defined (HAVE_IMAXDIV) -- cgit v1.2.1