BFM demod: fixed iterator in RDS parser

pull/263/head
f4exb 2018-11-13 16:01:33 +01:00
rodzic 1dc466e604
commit 98a193e591
1 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -532,20 +532,16 @@ void RDSParser::decode_type0(unsigned int *group, bool B)
if (af_1)
{
// @TODO: Find proper header or STL on OSX
#ifndef __APPLE__
std::pair<std::_Rb_tree_const_iterator<double>, bool> res = m_g0_alt_freq.insert(af_1/1e3);
m_g0_af_updated = m_g0_af_updated || res.second;
#endif
auto res = m_g0_alt_freq.insert(af_1/1e3);
m_g0_af_updated = m_g0_af_updated || res.second;
no_af += 1;
}
if (af_2)
{
// @TODO: Find proper header or STL on OSX
#ifndef __APPLE__
std::pair<std::_Rb_tree_const_iterator<double>, bool> res = m_g0_alt_freq.insert(af_2/1e3);
auto res = m_g0_alt_freq.insert(af_2/1e3);
m_g0_af_updated = m_g0_af_updated || res.second;
#endif
no_af += 2;
}