1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-04 23:40:04 +00:00

Use uint64_t instead of std::size_t

This should silence clang-tidy error about ambiguity
This commit is contained in:
Victor Castillo 2024-10-07 15:04:57 +02:00
parent 468f7c12fb
commit ef2f032ed5
No known key found for this signature in database
GPG Key ID: 8EF1FC8B7182F608
2 changed files with 8 additions and 8 deletions

View File

@ -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_);

View File

@ -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_;
};
/** \} */