Merge pull request #445 from h2o/kazuho/ptlslog-u32-warning
suppress warning on Xcode
diff --git a/include/picotls.h b/include/picotls.h
index 29f12cb..cf81b72 100644
--- a/include/picotls.h
+++ b/include/picotls.h
@@ -1343,7 +1343,7 @@
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)))) \