Skip to content

Commit f2637ba

Browse files
chinglee-iotUbuntukar-rahul-awsaggarg
authored
Fix MISRA 2012 Rule 10.8 violation (#853)
Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Rahul Kar <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent 1813a45 commit f2637ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
509509
/* Allocate enough space to hold the maximum number of items that
510510
* can be in the queue at any time. It is valid for uxItemSize to be
511511
* 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. */
512+
xQueueSizeInBytes = ( size_t ) ( ( size_t ) uxQueueLength * ( size_t ) uxItemSize );
513513

514514
/* Allocate the queue and storage area. Justification for MISRA
515515
* deviation as follows: pvPortMalloc() always ensures returned memory

0 commit comments

Comments
 (0)