Skip to content

Commit

Permalink
Fix #2150, Adds a cast to the negation of unsigned expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfiguer authored and jdfiguer committed Aug 31, 2023
1 parent fa5031f commit 8f108ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/evs/fsw/src/cfe_evs_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f108ef

Please sign in to comment.