Skip to content

Commit

Permalink
SourceSn is uint32_t and not uint64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Sep 17, 2024
1 parent 0094b57 commit 7eb5288
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/zenoh/api/source_info.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SourceInfo : public Owned<::z_owned_source_info_t> {
/// @name Constructors

/// @brief Construct from global id and sequence number.
SourceInfo(const EntityGlobalId& id, uint64_t sn) : Owned(nullptr) {
SourceInfo(const EntityGlobalId& id, uint32_t sn) : Owned(nullptr) {
::z_source_info_new(&this->_0, interop::as_copyable_c_ptr(id), sn);
}

Expand All @@ -57,7 +57,7 @@ class SourceInfo : public Owned<::z_owned_source_info_t> {
}

/// @brief Get the sequence number of the sample from the given source.
uint64_t sn() const { return ::z_source_info_sn(interop::as_loaned_c_ptr(*this)); }
uint32_t sn() const { return ::z_source_info_sn(interop::as_loaned_c_ptr(*this)); }
};
#endif
} // namespace zenoh
2 changes: 1 addition & 1 deletion zenoh-pico

0 comments on commit 7eb5288

Please sign in to comment.