Skip to content

Commit

Permalink
Fix coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
moninom1 committed Jul 28, 2023
1 parent f60e5f6 commit 4e578b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/include/FreeRTOS_IP_Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ extern struct xNetworkInterface * pxNetworkInterfaces;
/** @brief Macro calculates the number of elements in an array as a size_t. */
#ifndef ARRAY_SIZE_X
#ifndef _WINDOWS_
#define ARRAY_SIZE_X( x ) ( BaseType_t ) ( sizeof( x ) / sizeof( x[ 0 ] ) )
#define ARRAY_SIZE_X( x ) ( ( BaseType_t ) sizeof( x ) / ( BaseType_t ) sizeof( x[ 0 ] ) )
#else
#define ARRAY_SIZE_X( x ) ( sizeof( x ) / sizeof( x[ 0 ] ) )
#endif
Expand Down

0 comments on commit 4e578b0

Please sign in to comment.