Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #606, Resolve cast-align error in VxWorks OS_TaskGetId_Impl #720

Merged
merged 1 commit into from
Jan 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/os/vxworks/src/os-impl-tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
size_t idx;
osal_id_t id;
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;
Expand Down