Skip to content

Commit

Permalink
remove impossible validation
Browse files Browse the repository at this point in the history
add parenthesis
  • Loading branch information
dangell7 committed May 29, 2023
1 parent 3a96000 commit 5058592
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ripple/rpc/CTID.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ decodeCTID(const T ctid) noexcept
else
return {};

if (ctidValue > 0xFFFF'FFFF'FFFF'FFFFULL ||
(ctidValue & 0xF000'0000'0000'0000ULL) != 0xC000'0000'0000'0000ULL)
if ((ctidValue & 0xF000'0000'0000'0000ULL) != 0xC000'0000'0000'0000ULL)
return {};

uint32_t ledger_seq = (ctidValue >> 32) & 0xFFFF'FFFUL;
Expand Down

0 comments on commit 5058592

Please sign in to comment.