Skip to content

Commit

Permalink
Fix nasa#1279, update size_copied to use OSAL_SIZE_C for cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Price committed Sep 29, 2022
1 parent b708d5d commit 2f2dbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/rtems/src/os-impl-queues.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size,

if (status != RTEMS_SUCCESSFUL)
{
*size_copied = 0;
*size_copied = OSAL_SIZE_C(0);

/* Map the rtems error to the most appropriate OSAL return code */
if ((timeout == OS_PEND) && (status != RTEMS_TIMEOUT))
Expand Down Expand Up @@ -234,7 +234,7 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size,
}
else
{
*size_copied = impl_size;
*size_copied = OSAL_SIZE_C(impl_size);
return_code = OS_SUCCESS;
}

Expand Down

0 comments on commit 2f2dbac

Please sign in to comment.