From 842f05870ee632824a2fff1205e9f54aa0f370d0 Mon Sep 17 00:00:00 2001 From: Heartman <52736360+mgrichardvanharten@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:28:34 +0100 Subject: [PATCH] Fix compiler warning about loss of data in stdout logging (#4003) --- src/generated/stdout/quic_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generated/stdout/quic_trace.c b/src/generated/stdout/quic_trace.c index 591a6e8d18..d550d20101 100644 --- a/src/generated/stdout/quic_trace.c +++ b/src/generated/stdout/quic_trace.c @@ -48,7 +48,7 @@ char * casted_clog_bytearray(const uint8_t * const data, // unsure what this is, just hexdump it param->str = CXPLAT_ALLOC_PAGED(len * 2 + 1, QUIC_POOL_TMP_ALLOC); if (param->str) { - EncodeHexBuffer((uint8_t *)data, len, param->str); + EncodeHexBuffer((uint8_t *)data, (uint8_t)len, param->str); param->str[len * 2 + 1] = 0; }