From dd6d480a3ee9e6d9073a0067f73a4ea59ec6d0aa Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 20 Aug 2014 20:15:43 +0000 Subject: [PATCH] sh: Remove two redundant (uintmax_t) casts. Submitted by: jmallett --- bin/sh/arith_yacc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/sh/arith_yacc.c b/bin/sh/arith_yacc.c index 46df8477d0b..5000c6b0d1b 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: