diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
commit | b7de164d6251dc066123b59bc15d30c74e920756 (patch) | |
tree | 650e67242386d55616a2038c5cbc7042568ed377 /polynomi.cpp | |
parent | 7b64ca489a7e1da36b02b4a35d149275914d8268 (diff) | |
download | cryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz |
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'polynomi.cpp')
-rw-r--r-- | polynomi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polynomi.cpp b/polynomi.cpp index cbf4fc9c..d7326a0e 100644 --- a/polynomi.cpp +++ b/polynomi.cpp @@ -476,7 +476,7 @@ void RingOfPolynomialsOver<T>::CalculateAlpha(std::vector<CoefficientType> &alph template <class T> typename RingOfPolynomialsOver<T>::Element RingOfPolynomialsOver<T>::Interpolate(const CoefficientType x[], const CoefficientType y[], unsigned int n) const { - assert(n > 0); + CRYPTOPP_ASSERT(n > 0); std::vector<CoefficientType> alpha(n); CalculateAlpha(alpha, x, y, n); @@ -498,7 +498,7 @@ typename RingOfPolynomialsOver<T>::Element RingOfPolynomialsOver<T>::Interpolate template <class T> typename RingOfPolynomialsOver<T>::CoefficientType RingOfPolynomialsOver<T>::InterpolateAt(const CoefficientType &position, const CoefficientType x[], const CoefficientType y[], unsigned int n) const { - assert(n > 0); + CRYPTOPP_ASSERT(n > 0); std::vector<CoefficientType> alpha(n); CalculateAlpha(alpha, x, y, n); @@ -528,7 +528,7 @@ void PrepareBulkPolynomialInterpolation(const Ring &ring, Element *w, const Elem template <class Ring, class Element> void PrepareBulkPolynomialInterpolationAt(const Ring &ring, Element *v, const Element &position, const Element x[], const Element w[], unsigned int n) { - assert(n > 0); + CRYPTOPP_ASSERT(n > 0); std::vector<Element> a(2*n-1); unsigned int i; |