mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
sh: Remove two redundant (uintmax_t) casts.
Submitted by: jmallett
This commit is contained in:
parent
2bcc37f99c
commit
dd6d480a3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270246
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue