From 204a89af9d7e38281c599ca8d15990a99bff865f Mon Sep 17 00:00:00 2001 From: gkwicker <14828980+gkwicker@users.noreply.github.com> Date: Fri, 28 Aug 2020 10:40:22 -0700 Subject: [PATCH] Use unsigned constant in pdMS_TO_TICKS(). --- include/projdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/projdefs.h b/include/projdefs.h index c68b4b841..c1adfad23 100644 --- a/include/projdefs.h +++ b/include/projdefs.h @@ -37,7 +37,7 @@ typedef void (* TaskFunction_t)( void * ); * overridden by a macro of the same name defined in FreeRTOSConfig.h in case the * definition here is not suitable for your application. */ #ifndef pdMS_TO_TICKS - #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) ) + #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000U ) ) #endif #define pdFALSE ( ( BaseType_t ) 0 )