aboutsummaryrefslogtreecommitdiff
path: root/src/math/poly.c
diff options
context:
space:
mode:
authorJ08nY2017-05-23 19:47:10 +0200
committerJ08nY2017-05-23 19:47:10 +0200
commitca21d236ea409fa40f4bda693777054add7ef73f (patch)
tree2f48596d5a28c631be159bed5637e3350f187f4b /src/math/poly.c
parent3f9e42b055c305f05da3f57b2501600488d377a7 (diff)
downloadecgen-ca21d236ea409fa40f4bda693777054add7ef73f.tar.gz
ecgen-ca21d236ea409fa40f4bda693777054add7ef73f.tar.zst
ecgen-ca21d236ea409fa40f4bda693777054add7ef73f.zip
Diffstat (limited to 'src/math/poly.c')
-rw-r--r--src/math/poly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/poly.c b/src/math/poly.c
index 50d0da0..2b655da 100644
--- a/src/math/poly.c
+++ b/src/math/poly.c
@@ -2729,7 +2729,7 @@ polynomial_t *poly_find(unsigned long m) {
len_penta = sizeof(hp_pentanomials) / sizeof(polynomial_t);
}
- polynomial_t searched = {(int)m};
+ polynomial_t searched = {(unsigned int)m};
polynomial_t *tri = (polynomial_t *)bsearch(
&searched, search_tri, len_tri, sizeof(polynomial_t), &compare_poly);
if (tri) {