8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53fd36e + 4556965 commit a4cdf78Copy full SHA for a4cdf78
src/queue.c
@@ -506,7 +506,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
506
/* Check for multiplication overflow. */
507
( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) &&
508
/* Check for addition overflow. */
509
- ( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( uxQueueLength * uxItemSize ) ) )
+ ( ( SIZE_MAX - sizeof( Queue_t ) ) >= ( size_t ) ( uxQueueLength * uxItemSize ) ) )
510
{
511
/* Allocate enough space to hold the maximum number of items that
512
* can be in the queue at any time. It is valid for uxItemSize to be
0 commit comments