use constants to avoid mistakes

This commit is contained in:
Ahmet Inan 2018-09-21 19:26:30 +02:00
commit 2bf8d4ea84
8 changed files with 69 additions and 69 deletions

View file

@ -16,7 +16,7 @@ public:
typedef typename GF::value_type value_type;
typedef typename GF::ValueType ValueType;
typedef typename GF::IndexType IndexType;
static const int N = GF::N, K = N - NR;
static const int N = GF::N, K = N - NR, NP = NR;
IndexType generator[NR+1];
ReedSolomonEncoder()
{