diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 13:36:32 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 13:39:00 +0100 |
| commit | abb21adb39de752b427e1e6fc66d94cfc9c3ee04 (patch) | |
| tree | 81ed826114ede8567148b92871896ae7412d9cac /src/PJ_horner.c | |
| parent | 8eb46dbbb63d7a880ac787561c907491cffc0917 (diff) | |
| download | PROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.tar.gz PROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.zip | |
Fix MSVC warnings and add /Wx to appveyor.yml
Diffstat (limited to 'src/PJ_horner.c')
| -rw-r--r-- | src/PJ_horner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_horner.c b/src/PJ_horner.c index 3dde29c8..4ee2e78a 100644 --- a/src/PJ_horner.c +++ b/src/PJ_horner.c @@ -134,7 +134,7 @@ static void horner_free (HORNER *h) { static HORNER *horner_alloc (size_t order, int complex_polynomia) { /* size_t is unsigned, so we need not check for order > 0 */ - int n = horner_number_of_coefficients(order); + int n = (int)horner_number_of_coefficients(order); int polynomia_ok = 0; HORNER *h = horner_calloc (1, sizeof (HORNER)); @@ -142,8 +142,8 @@ static HORNER *horner_alloc (size_t order, int complex_polynomia) { return 0; if (complex_polynomia) - n = 2*order + 2; - h->order = order; + n = 2*(int)order + 2; + h->order = (int)order; h->coefs = n; if (complex_polynomia) { |
