diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-05-17 18:01:26 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-05-20 21:39:37 +0200 |
commit | ac2e922067be306a89cd10419263cade54b2f60f (patch) | |
tree | 04486fac3fd732a3e8f52ac4eea337cecf70ab0b /src/ReedSolomon.cpp | |
parent | 8a4f546b85d0887d1d5af0a428753c7d31304b72 (diff) | |
download | dabmux-ac2e922067be306a89cd10419263cade54b2f60f.tar.gz dabmux-ac2e922067be306a89cd10419263cade54b2f60f.tar.bz2 dabmux-ac2e922067be306a89cd10419263cade54b2f60f.zip |
fix segfault with EDI
Diffstat (limited to 'src/ReedSolomon.cpp')
-rw-r--r-- | src/ReedSolomon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ReedSolomon.cpp b/src/ReedSolomon.cpp index 0989e17..5239a8f 100644 --- a/src/ReedSolomon.cpp +++ b/src/ReedSolomon.cpp @@ -20,6 +20,7 @@ */ #include "ReedSolomon.h" +#include <stdexcept> #include <stdio.h> // For galois.h ... #include <string.h> // For memcpy @@ -46,8 +47,7 @@ ReedSolomon::ReedSolomon(int N, int K, bool reverse, int gfpoly, int firstRoot, rsData = init_rs_char(symsize, gfpoly, firstRoot, primElem, nroots, pad); if (rsData == NULL) { - fprintf(stderr, "ERROR: Invalid Reed Solomon parameters!\n"); - abort(); + throw std::invalid_argument("Invalid Reed-Solomon parameters!"); } } |