summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-06-22 17:56:05 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-06-22 17:56:05 -0700
commit99ee660ce3701a33efa1737ae341e5360661f900 (patch)
treee51580572558e4fad555a999dccdabb37d9ef1e0 /gnuradio-runtime/lib/math/qa_fxpt_nco.cc
parent1d537a26b27b9d3ce6a3affc6ea500a9efc5a867 (diff)
parent54e89c6431c249bbe560568d76800fef6a245506 (diff)
Merge branch 'master' into next
Diffstat (limited to 'gnuradio-runtime/lib/math/qa_fxpt_nco.cc')
-rw-r--r--gnuradio-runtime/lib/math/qa_fxpt_nco.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
index cf229d68be..16ea120381 100644
--- a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
+++ b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
@@ -86,8 +86,8 @@ qa_fxpt_nco::t1()
{
gr::nco<float,float> ref_nco;
gr::fxpt_nco new_nco;
- gr_complex ref_block[SIN_COS_BLOCK_SIZE];
- gr_complex new_block[SIN_COS_BLOCK_SIZE];
+ gr_complex* ref_block = new gr_complex[SIN_COS_BLOCK_SIZE];
+ gr_complex* new_block = new gr_complex[SIN_COS_BLOCK_SIZE];
double max_error = 0;
ref_nco.set_freq((float)(2 * M_PI / SIN_COS_FREQ));
@@ -107,6 +107,8 @@ qa_fxpt_nco::t1()
}
CPPUNIT_ASSERT_DOUBLES_EQUAL (ref_nco.get_phase(), new_nco.get_phase(), SIN_COS_TOLERANCE);
// printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, max_phase_error);
+ delete[] ref_block;
+ delete[] new_block;
}
void