Skip to content

Commit

Permalink
Update rmw_zenoh_cpp/src/detail/liveliness_utils.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: Yadu <[email protected]>
  • Loading branch information
Yadunund and clalancette authored Feb 7, 2024
1 parent e85d45d commit 966a043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/liveliness_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ std::optional<rmw_qos_profile_t> keyexpr_to_qos(const std::string & keyexpr)
// Get the history depth.
errno = 0;
char * endptr;
int64_t num = strtol(history_parts[1].c_str(), &endptr, 10);
unsigned long num = strtoul(history_parts[1].c_str(), &endptr, 10);
if (endptr == history_parts[1].c_str()) {
// No values were converted, this is an error
RMW_SET_ERROR_MSG("no valid numbers available");
Expand Down

0 comments on commit 966a043

Please sign in to comment.