Merge branch 'main' into MISRA-20.7

This commit is contained in:
chinglee-iot 2024-02-01 15:58:47 +08:00 committed by GitHub
commit e6629aa01a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 36 additions and 35 deletions

View file

@ -263,7 +263,7 @@
if( xKernelObjectPool[ i ].xInternalObjectHandle == NULL )
{
/* Mark this index as not free. */
xKernelObjectPool[ i ].xInternalObjectHandle = ( OpaqueObjectHandle_t ) ( ~0 );
xKernelObjectPool[ i ].xInternalObjectHandle = ( OpaqueObjectHandle_t ) ( ~0U );
lFreeIndex = i;
break;
}