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.
1 parent c0bfbb9 commit de7c014Copy full SHA for de7c014
queue.c
@@ -513,7 +513,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
513
/* Check for multiplication overflow. */
514
( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) &&
515
/* Check for addition overflow. */
516
- ( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( uxQueueLength * uxItemSize ) ) )
+ ( ( SIZE_MAX - sizeof( Queue_t ) ) >= ( size_t ) ( uxQueueLength * uxItemSize ) ) )
517
{
518
/* Allocate enough space to hold the maximum number of items that
519
* can be in the queue at any time. It is valid for uxItemSize to be
0 commit comments