Skip to content

Commit

Permalink
to suppress signed comparison warning, follow the convention of casti…
Browse files Browse the repository at this point in the history
…ng ptrdiff_t to unsigned
  • Loading branch information
kazuho committed Aug 12, 2024
1 parent 02300e9 commit 557aad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/quicly/frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ inline int quicly_decode_stream_frame(uint8_t type_flags, uint64_t max_frame_siz
*src = end;
} else {
/* QUIC on Streams */
if (end - *src < max_frame_size)
if ((uint64_t)(end - *src) < max_frame_size)
return QUICLY_ERROR_PARTIAL_FRAME;
frame->data = ptls_iovec_init(*src, max_frame_size);
*src += max_frame_size;
Expand Down

0 comments on commit 557aad4

Please sign in to comment.