mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
sh: Remove two redundant (uintmax_t) casts.
Submitted by: jmallett
This commit is contained in:
parent
2bcc37f99c
commit
dd6d480a3e
1 changed files with 2 additions and 3 deletions
|
|
@ -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