Skip to content

Commit e0fc0c4

Browse files
pidarpedbzbarsky-apple
andauthoredJun 4, 2024
Update src/transport/raw/TCP.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 9e379b5 commit e0fc0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/transport/raw/TCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ using namespace chip::Encoding;
4343
constexpr size_t kPacketSizeBytes = 4;
4444

4545
static_assert(System::PacketBuffer::kLargeBufMaxSizeWithoutReserve <= UINT32_MAX,
46-
"Max size for Large payload buffers cannot exceed UINT32_MAX");
46+
"Cast below could truncate the value");
4747
static_assert(System::PacketBuffer::kLargeBufMaxSizeWithoutReserve >= kPacketSizeBytes,
4848
"Large buffer allocation should be large enough to hold the length field");
4949

0 commit comments

Comments
 (0)