Skip to content

Commit

Permalink
Did some formatting corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tlykkeberg-grundfos committed Nov 1, 2021
1 parent 95e923f commit 3d38e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/core/CHIPTLVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ CHIP_ERROR TLVReader::Get(int24_t & v)
{
int64_t v64 = 0;
CHIP_ERROR err = Get(v64);
if ((v64 > static_cast<int64_t>((1UL<<23) - 1)) || (v64 < static_cast<int64_t>(-(1UL<<23))))
if ((v64 > static_cast<int64_t>((1UL << 23) - 1)) || (v64 < static_cast<int64_t>(-(1UL << 23))))
{
return CHIP_ERROR_INVALID_INTEGER_VALUE;
}
Expand Down Expand Up @@ -228,7 +228,7 @@ CHIP_ERROR TLVReader::Get(uint24_t & v)
{
uint64_t v64 = 0;
CHIP_ERROR err = Get(v64);
if (v64 > static_cast<uint64_t>((1UL<<24) - 1))
if (v64 > static_cast<uint64_t>((1UL << 24) - 1))
{
return CHIP_ERROR_INVALID_INTEGER_VALUE;
}
Expand Down

0 comments on commit 3d38e00

Please sign in to comment.