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 1813a45 commit f2637baCopy full SHA for f2637ba
queue.c
@@ -509,7 +509,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
509
/* Allocate enough space to hold the maximum number of items that
510
* can be in the queue at any time. It is valid for uxItemSize to be
511
* zero in the case the queue is used as a semaphore. */
512
- xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
+ xQueueSizeInBytes = ( size_t ) ( ( size_t ) uxQueueLength * ( size_t ) uxItemSize );
513
514
/* Allocate the queue and storage area. Justification for MISRA
515
* deviation as follows: pvPortMalloc() always ensures returned memory
0 commit comments