diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2017-06-22 18:02:20 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-06-22 18:02:20 -0700 |
commit | 1e02521a72304f898b3523148f35038f53bbb056 (patch) | |
tree | 3d5ea9b14603cf9b1875327a1915bad345b83bde /gnuradio-runtime/lib/math/qa_fxpt_nco.cc | |
parent | b63e8cf03236257730680adfd75378daf3f5c153 (diff) | |
parent | 99ee660ce3701a33efa1737ae341e5360661f900 (diff) |
Merge branch 'next' into python3
Conflicts:
gr-uhd/apps/uhd_app.py
Diffstat (limited to 'gnuradio-runtime/lib/math/qa_fxpt_nco.cc')
-rw-r--r-- | gnuradio-runtime/lib/math/qa_fxpt_nco.cc | 6 |
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 |