From c69c1cf86b3b19124e0e92019ae55fc41bfe9a4e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 6 Mar 2024 10:33:13 +0100 Subject: [PATCH] hci_event: fix warning --- src/hci_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci_event.c b/src/hci_event.c index 2a7a6cc0e..ba6cb4cd6 100644 --- a/src/hci_event.c +++ b/src/hci_event.c @@ -133,7 +133,7 @@ uint16_t hci_event_create_from_template_and_arglist(uint8_t *hci_event_buffer, u if (!hci_event_can_store(pos, buffer_size, 1, &overrun)) break; word = va_arg(argptr, int); // minimal va_arg is int: 2 bytes on 8+16 bit CPUs length_j = word & 0xff; - hci_event_buffer[pos++] = length_j; + hci_event_buffer[pos++] = (uint8_t) length_j; break; case 'K': word = va_arg(argptr, int); // minimal va_arg is int: 2 bytes on 8+16 bit CPUs