Skip to content

Commit

Permalink
PhaseDiscriminator: fix uninitialized m_save_value
Browse files Browse the repository at this point in the history
* See #43
* By Clayton Smith (@argilo of GitHub)
  • Loading branch information
jj1bdx committed Dec 12, 2023
2 parents 1752674 + 4e2f513 commit 4e796ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sfmbase/PhaseDiscriminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
PhaseDiscriminator::PhaseDiscriminator(double max_freq_dev)
: m_normalize_factor(max_freq_dev * 2.0 * M_PI),
// boundary = M_PI / m_normalize_factor;
m_boundary(1.0 / (max_freq_dev * 2.0)) {}
m_boundary(1.0 / (max_freq_dev * 2.0)),
m_save_value(0) {}

// Process samples.
void PhaseDiscriminator::process(const IQSampleVector &samples_in,
Expand Down

0 comments on commit 4e796ec

Please sign in to comment.