From 45569658a535411057558e2132adef1cf625ac4a Mon Sep 17 00:00:00 2001 From: "John Y. Pazekha" Date: Sun, 29 Sep 2024 16:00:28 +0200 Subject: [PATCH] Change the cast from UBaseType_t to size_t --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.c b/src/queue.c index 86effe5..e39d9e5 100644 --- a/src/queue.c +++ b/src/queue.c @@ -506,7 +506,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue, /* Check for multiplication overflow. */ ( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) && /* Check for addition overflow. */ - ( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( uxQueueLength * uxItemSize ) ) ) + ( ( SIZE_MAX - sizeof( Queue_t ) ) >= ( size_t ) ( uxQueueLength * uxItemSize ) ) ) { /* Allocate enough space to hold the maximum number of items that * can be in the queue at any time. It is valid for uxItemSize to be