Skip to content

Commit

Permalink
Fixed inconsistent type inference
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
  • Loading branch information
Jacob Hassold committed Apr 18, 2019
1 parent 81290f3 commit fba6bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcl/test/rcl/test_time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ TEST(CLASSNAME(rcl_time, RMW_IMPLEMENTATION), specific_clock_instantiation) {

TEST(CLASSNAME(rcl_time, RMW_IMPLEMENTATION), rcl_time_difference) {
rcl_allocator_t allocator = rcl_get_default_allocator();
auto ros_clock =
auto * ros_clock =
static_cast<rcl_clock_t *>(allocator.allocate(sizeof(rcl_clock_t), allocator.state));
OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
allocator.deallocate(ros_clock, allocator.state);
Expand Down

0 comments on commit fba6bb8

Please sign in to comment.