Skip to content

Commit 679173b

Browse files
committed
Fix wrong debug assertion when converting DDS_Duration values
Signed-off-by: Andrea Sorbini <[email protected]>
1 parent 87cee28 commit 679173b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_connextdds_common/src/common/rmw_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ dds_duration_to_rmw_time(const DDS_Duration_t & duration)
285285
if (DDS_Duration_is_infinite(&duration)) {
286286
return RMW_DURATION_INFINITE;
287287
}
288-
assert(duration.sec > 0);
288+
assert(duration.sec >= 0);
289289
rmw_time_t result = {static_cast<uint64_t>(duration.sec), duration.nanosec};
290290
return result;
291291
}

0 commit comments

Comments
 (0)