Skip to content

Commit

Permalink
fix windows compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Miaofei <[email protected]>
  • Loading branch information
mm318 committed May 20, 2019
1 parent e987606 commit a3e299d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test_quality_of_service/test/test_deadline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ using namespace std::chrono_literals;
TEST_F(QosRclcppTestFixture, test_deadline_no_publisher) {
const std::chrono::milliseconds deadline_duration = 1s;
const std::chrono::milliseconds test_duration = 10500ms;
const int expected_number_of_deadline_callbacks = test_duration / deadline_duration;
const int expected_number_of_deadline_callbacks = static_cast<int>(
test_duration / deadline_duration);

int total_number_of_subscriber_deadline_events = 0;
int last_sub_count = 0;
Expand Down
2 changes: 1 addition & 1 deletion test_quality_of_service/test/test_lifespan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ TEST_F(QosRclcppTestFixture, test_deadline) {
const std::chrono::milliseconds lifespan_duration = 1s;
const int history = 2;
const std::chrono::milliseconds max_test_length = 11s;
const int expected_published = max_test_length / lifespan_duration * 2;
const int expected_published = 2 * static_cast<int>(max_test_length / lifespan_duration);
const std::chrono::milliseconds publish_period = 500ms;

// define qos profile
Expand Down

0 comments on commit a3e299d

Please sign in to comment.