Skip to content

Commit

Permalink
Add parentheses suggested by Clang on OSX to fix build warning (ros2#930
Browse files Browse the repository at this point in the history
)

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
emersonknapp committed Dec 3, 2021
1 parent 2abc509 commit d40ee75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosbag2_transport/src/rosbag2_transport/bag_rewrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void perform_rewrite(
next_messages.resize(input_bags.size(), nullptr);

std::shared_ptr<rosbag2_storage::SerializedBagMessage> next_msg;
while (next_msg = get_next(input_bags, next_messages)) {
while ((next_msg = get_next(input_bags, next_messages))) {
auto topic_writers = topic_outputs.find(next_msg->topic_name);
if (topic_writers != topic_outputs.end()) {
for (auto writer : topic_writers->second) {
Expand Down

0 comments on commit d40ee75

Please sign in to comment.