commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/01: Throw an exception if the given K an


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: Throw an exception if the given K and R are not supported.
Date: Thu, 13 Oct 2016 21:54:18 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 1624da7772f1ff57232e2f2024281547d483629c
Author: Clayton Smith <address@hidden>
Date:   Sat Oct 8 10:36:18 2016 -0400

    Throw an exception if the given K and R are not supported.
---
 gr-fec/lib/cc_decoder_impl.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gr-fec/lib/cc_decoder_impl.cc b/gr-fec/lib/cc_decoder_impl.cc
index be505e2..21af22e 100644
--- a/gr-fec/lib/cc_decoder_impl.cc
+++ b/gr-fec/lib/cc_decoder_impl.cc
@@ -156,6 +156,9 @@ namespace gr {
         kerneltype << k_ << d_k << r_ << d_rate;
 
         d_kernel = yp_kernel[kerneltype.str()];
+        if (d_kernel == NULL) {
+          throw std::runtime_error("cc_decoder: parameters not supported");
+        }
       }
 
       cc_decoder_impl::~cc_decoder_impl()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]