Skip to content

Commit

Permalink
Merge pull request #137 from neboskreb/bugfix/136-queue-change-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
feilipu authored Sep 29, 2024
2 parents 53fd36e + 4556965 commit a4cdf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4cdf78

Please sign in to comment.