Skip to content

Commit

Permalink
0u -> 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Aug 23, 2018
1 parent 66f0630 commit 5d578e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcl/src/rcl/wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static void
__wait_set_clean_up(rcl_wait_set_t * wait_set, rcl_allocator_t allocator)
{
if (wait_set->subscriptions) {
rcl_ret_t ret = rcl_wait_set_resize(wait_set, 0u, 0u, 0u, 0u, 0u);
rcl_ret_t ret = rcl_wait_set_resize(wait_set, 0, 0, 0, 0, 0);
(void)ret; // NO LINT
assert(ret == RCL_RET_OK); // Defensive, shouldn't fail with size 0.
}
Expand Down Expand Up @@ -233,7 +233,7 @@ rcl_wait_set_get_allocator(const rcl_wait_set_t * wait_set, rcl_allocator_t * al
rcl_allocator_t allocator = wait_set->impl->allocator; \
wait_set->size_of_ ## Type ## s = 0; \
wait_set->impl->Type ## _index = 0; \
if (0u == Type ## s_size) { \
if (0 == Type ## s_size) { \
if (wait_set->Type ## s) { \
allocator.deallocate((void *)wait_set->Type ## s, allocator.state); \
wait_set->Type ## s = NULL; \
Expand Down

0 comments on commit 5d578e6

Please sign in to comment.