Skip to content

Commit

Permalink
address linter waning for windows. (ros2#592)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya authored Mar 22, 2022
1 parent f9949f5 commit 7982967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ MemberIdentifierName GetTypeIdentifier(const MembersType * members, uint32_t ind
case ::rosidl_typesupport_introspection_cpp::ROS_TYPE_STRING:
case ::rosidl_typesupport_introspection_cpp::ROS_TYPE_WSTRING:
{
uint32_t bound = member->string_upper_bound_ ? member->string_upper_bound_ : 255;
uint32_t bound = member->string_upper_bound_ ?
static_cast<uint32_t>(member->string_upper_bound_) : 255;
bool wide =
(member->type_id_ == ::rosidl_typesupport_introspection_cpp::ROS_TYPE_STRING) ?
false : true;
Expand Down

0 comments on commit 7982967

Please sign in to comment.