Fix Resolve cast-align error in VxWorks OS_TaskGetId_Impl
@@ -400,16 +400,16 @@ int32 OS_TaskRegister_Impl(osal_id_t global_task_id)
*-----------------------------------------------------------------*/
osal_id_t OS_TaskGetId_Impl(void)
{
- OS_impl_task_internal_record_t *lrec;
+ void *lrec;
size_t idx;
osal_id_t id;
id = OS_OBJECT_ID_UNDEFINED;
- lrec = (OS_impl_task_internal_record_t *)taskTcb(taskIdSelf());
+ lrec = taskTcb(taskIdSelf());
if (lrec != NULL)
{
- idx = lrec - &OS_impl_task_table[0];
+ idx = (OS_impl_task_internal_record_t *)lrec - &OS_impl_task_table[0];
if (idx < OS_MAX_TASKS)
{
id = OS_global_task_table[idx].active_id;
