Skip to content

Commit

Permalink
Merge pull request #445 from h2o/kazuho/ptlslog-u32-warning
Browse files Browse the repository at this point in the history
suppress warning on Xcode
  • Loading branch information
kazuho authored Nov 29, 2022
2 parents 67fa009 + 4666ab2 commit 7e97d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/picotls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);
do { \
if (PTLS_UNLIKELY(!ptlslog_skip)) { \
if (sizeof(v) <= sizeof(uint32_t)) { \
if (PTLS_UNLIKELY(!ptls_log__do_push_unsigned32(&ptlslogbuf, (v)))) \
if (PTLS_UNLIKELY(!ptls_log__do_push_unsigned32(&ptlslogbuf, (uint32_t)(v)))) \
ptlslog_skip = 1; \
} else { \
if (PTLS_UNLIKELY(!ptls_log__do_push_unsigned64(&ptlslogbuf, (v)))) \
Expand Down

0 comments on commit 7e97d3e

Please sign in to comment.