Skip to content

Commit

Permalink
Fix #2024, osal_id_t type conversion in es_UT.c
Browse files Browse the repository at this point in the history
Corrects the implicit type conversion from an osal_id_t to an integer,
making it explicit by using the OS_ObjectIdToInteger() conversion function.
  • Loading branch information
jphickey committed Jan 18, 2022
1 parent c161cf0 commit 3eaf3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4519,7 +4519,7 @@ void TestAPI(void)

/* Hit error case for NULL TaskRecPtr */
ES_ResetUnitTest();
UT_SetDeferredRetcode(UT_KEY(OS_TaskGetId), 1, OS_OBJECT_ID_UNDEFINED);
UT_SetDeferredRetcode(UT_KEY(OS_TaskGetId), 1, OS_ObjectIdToInteger(OS_OBJECT_ID_UNDEFINED));
UtAssert_INT32_EQ(CFE_ES_GetTaskID(&TaskId), CFE_ES_ERR_RESOURCEID_NOT_VALID);
}

Expand Down

0 comments on commit 3eaf3ea

Please sign in to comment.