diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2014-08-20 20:15:43 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2014-08-20 20:15:43 +0000 |
| commit | dd6d480a3ee9e6d9073a0067f73a4ea59ec6d0aa (patch) | |
| tree | be343347724e111f9ed12320ce568bd9372e73b0 /bin/sh | |
| parent | 2bcc37f99c571cfdbadbd835774f2a79a07782f3 (diff) | |
Notes
Diffstat (limited to 'bin/sh')
| -rw-r--r-- | bin/sh/arith_yacc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/sh/arith_yacc.c b/bin/sh/arith_yacc.c index 46df8477d0b8..5000c6b0d1be 100644 --- a/bin/sh/arith_yacc.c +++ b/bin/sh/arith_yacc.c @@ -139,10 +139,9 @@ static arith_t do_binop(int op, arith_t a, arith_t b) case ARITH_SUB: return (uintmax_t)a - (uintmax_t)b; case ARITH_LSHIFT: - return (uintmax_t)a << - ((uintmax_t)b & (sizeof(uintmax_t) * CHAR_BIT - 1)); + return (uintmax_t)a << (b & (sizeof(uintmax_t) * CHAR_BIT - 1)); case ARITH_RSHIFT: - return a >> ((uintmax_t)b & (sizeof(uintmax_t) * CHAR_BIT - 1)); + return a >> (b & (sizeof(uintmax_t) * CHAR_BIT - 1)); case ARITH_LT: return a < b; case ARITH_LE: |
