Skip to content

Commit 071ccd8

Browse files
committed
Patched rmw_fastrtps so string comparison is correct
1 parent b45a327 commit 071ccd8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/rmw_fastrtps_dynamic_cpp/src/type_support_common.cpp b/rmw_fastrtps_dynamic_cpp/src/type_support_common.cpp
2+
index d602069..62e4362 100644
3+
--- a/rmw_fastrtps_dynamic_cpp/src/type_support_common.cpp
4+
+++ b/rmw_fastrtps_dynamic_cpp/src/type_support_common.cpp
5+
@@ -25,12 +25,13 @@
6+
bool
7+
using_introspection_c_typesupport(const char * typesupport_identifier)
8+
{
9+
- return typesupport_identifier == rosidl_typesupport_introspection_c__identifier;
10+
+ return !std::string(typesupport_identifier)
11+
+ .compare(rosidl_typesupport_introspection_c__identifier);
12+
}
13+
14+
bool
15+
using_introspection_cpp_typesupport(const char * typesupport_identifier)
16+
{
17+
- return typesupport_identifier ==
18+
- rosidl_typesupport_introspection_cpp::typesupport_identifier;
19+
+ return !std::string(typesupport_identifier)
20+
+ .compare(rosidl_typesupport_introspection_cpp::typesupport_identifier);
21+
}

0 commit comments

Comments
 (0)