Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceSn is uint32_t and not uint64_t #222

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading