From ef2f032ed56bf6f814f053c586f5d18b839e335a Mon Sep 17 00:00:00 2001 From: Victor Castillo Date: Mon, 7 Oct 2024 15:04:57 +0200 Subject: [PATCH] Use uint64_t instead of std::size_t This should silence clang-tidy error about ambiguity --- src/algorithms/signal_source/adapters/file_source_base.cc | 8 ++++---- src/algorithms/signal_source/adapters/file_source_base.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/algorithms/signal_source/adapters/file_source_base.cc b/src/algorithms/signal_source/adapters/file_source_base.cc index 48dd72881..cf7b2cef9 100644 --- a/src/algorithms/signal_source/adapters/file_source_base.cc +++ b/src/algorithms/signal_source/adapters/file_source_base.cc @@ -64,11 +64,11 @@ FileSourceBase::FileSourceBase(ConfigurationInterface const* configuration, std: // Configuration for attaching extra data to the sample stream attach_extra_data_(configuration->property(role_ + ".extra_data.enabled"s, false)), ed_path_(configuration->property(role_ + ".extra_data.filename"s, "../data/extra_data.dat"s)), - ed_offset_in_file_(configuration->property(role_ + ".extra_data.file_offset"s, std::size_t{0UL})), - ed_item_size_(configuration->property(role_ + ".extra_data.item_size"s, std::size_t{1UL})), + ed_offset_in_file_(configuration->property(role_ + ".extra_data.file_offset"s, uint64_t{0UL})), + ed_item_size_(configuration->property(role_ + ".extra_data.item_size"s, uint64_t{1UL})), ed_repeat_(configuration->property(role_ + ".extra_data.repeat"s, false)), - ed_offset_in_samples_(configuration->property(role_ + ".extra_data.sample_offset"s, std::size_t{0UL})), - ed_sample_period_(configuration->property(role_ + ".extra_data.sample_period"s, std::size_t{1UL})) + ed_offset_in_samples_(configuration->property(role_ + ".extra_data.sample_offset"s, uint64_t{0UL})), + ed_sample_period_(configuration->property(role_ + ".extra_data.sample_period"s, uint64_t{1UL})) { minimum_tail_s_ = std::max(configuration->property("Acquisition_1C.coherent_integration_time_ms", 0.0) * 0.001 * 2.0, minimum_tail_s_); minimum_tail_s_ = std::max(configuration->property("Acquisition_2S.coherent_integration_time_ms", 0.0) * 0.001 * 2.0, minimum_tail_s_); diff --git a/src/algorithms/signal_source/adapters/file_source_base.h b/src/algorithms/signal_source/adapters/file_source_base.h index 9cc012cf7..534f2369b 100644 --- a/src/algorithms/signal_source/adapters/file_source_base.h +++ b/src/algorithms/signal_source/adapters/file_source_base.h @@ -187,11 +187,11 @@ private: // Configuration for Extra Data source bool attach_extra_data_; std::string ed_path_; - std::size_t ed_offset_in_file_; - std::size_t ed_item_size_; + uint64_t ed_offset_in_file_; + uint64_t ed_item_size_; bool ed_repeat_; - std::size_t ed_offset_in_samples_; - std::size_t ed_sample_period_; + uint64_t ed_offset_in_samples_; + uint64_t ed_sample_period_; }; /** \} */