From 8f108ef7b5935172fdf31cd7fa04f7c8a1f3cf31 Mon Sep 17 00:00:00 2001 From: jdfiguer Date: Wed, 30 Aug 2023 21:50:35 -0400 Subject: [PATCH] Fix #2150, Adds a cast to the negation of unsigned expression --- modules/evs/fsw/src/cfe_evs_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/evs/fsw/src/cfe_evs_utils.c b/modules/evs/fsw/src/cfe_evs_utils.c index bf6057b05..b67154f24 100644 --- a/modules/evs/fsw/src/cfe_evs_utils.c +++ b/modules/evs/fsw/src/cfe_evs_utils.c @@ -301,7 +301,7 @@ bool EVS_CheckAndIncrementSquelchTokens(EVS_AppData_t *AppDataPtr) * CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC) seconds after flooding stops if * saturated */ - const int32 LOWER_THRESHOLD = -CFE_EVS_Global.EVS_EventBurstMax * 1000; + const int32 LOWER_THRESHOLD = -(int32)CFE_EVS_Global.EVS_EventBurstMax * 1000; /* * Set this to 1000 to avoid integer division while computing CreditCount