1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-06 08:38:06 +00:00

fix: maintain c++14 compatibility

This commit is contained in:
Victor Castillo
2025-09-01 14:13:48 +02:00
committed by Carles Fernandez
parent 22371ee301
commit 0398d23ccd

View File

@@ -25,7 +25,9 @@ std::vector<gr::tag_t> resample_sensor_data_tags(const std::vector<gr::tag_t>& t
{
if (pmt::dict_has_key(tag.value, SAMPLE_STAMP_KEY))
{
auto& new_tag = new_tags.emplace_back();
new_tags.emplace_back();
auto& new_tag = new_tags.back();
uint64_t sample_stamp = pmt::to_uint64(pmt::dict_ref(tag.value, SAMPLE_STAMP_KEY, pmt::from_uint64(0)));
sample_stamp = sample_stamp * freq_out / freq_in;
new_tag.offset = tag.offset * freq_out / freq_in;