diff options
author | jilles <jilles@FreeBSD.org> | 2014-08-20 20:15:43 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-08-20 20:15:43 +0000 |
commit | e5e9c612e0b9ca5dfbdcba156a2c27dfd97c1983 (patch) | |
tree | be343347724e111f9ed12320ce568bd9372e73b0 /bin/sh | |
parent | b248e9b18fdaada9f61497e89c6ba18345afa577 (diff) | |
download | FreeBSD-src-e5e9c612e0b9ca5dfbdcba156a2c27dfd97c1983.zip FreeBSD-src-e5e9c612e0b9ca5dfbdcba156a2c27dfd97c1983.tar.gz |
sh: Remove two redundant (uintmax_t) casts.
Submitted by: jmallett
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 46df847..5000c6b 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: |