From 3eaf3eae027d068b61a4ee4b40aae3f0817fa280 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Tue, 18 Jan 2022 10:53:02 -0500 Subject: [PATCH] Fix #2024, osal_id_t type conversion in es_UT.c Corrects the implicit type conversion from an osal_id_t to an integer, making it explicit by using the OS_ObjectIdToInteger() conversion function. --- modules/es/ut-coverage/es_UT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/es/ut-coverage/es_UT.c b/modules/es/ut-coverage/es_UT.c index 245487995..b30b6679c 100644 --- a/modules/es/ut-coverage/es_UT.c +++ b/modules/es/ut-coverage/es_UT.c @@ -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); }