summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/polynomial.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-10 01:41:57 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-10 01:41:57 -0500
commitf7f174822cebf5958fc5e6b2a80ba53d0e55a680 (patch)
tree833d2b3261b65236be9f1e60d7a9ad959e8dcc74 /libdimension/dimension/polynomial.h
parent516df38e8acff5d1f7022ae5492f814acea1df3c (diff)
downloaddimension-f7f174822cebf5958fc5e6b2a80ba53d0e55a680.tar.xz
Standard compliance.
Apparently ssize_t isn't a standard type...
Diffstat (limited to 'libdimension/dimension/polynomial.h')
-rw-r--r--libdimension/dimension/polynomial.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension/polynomial.h b/libdimension/dimension/polynomial.h
index ffe3014..56e3ac0 100644
--- a/libdimension/dimension/polynomial.h
+++ b/libdimension/dimension/polynomial.h
@@ -34,8 +34,8 @@ DMNSN_INLINE double
dmnsn_evaluate_polynomial(const double poly[], size_t degree, double x)
{
double ret = poly[degree];
- ssize_t i;
- for (i = degree - 1; i >= 0; --i) {
+ size_t i;
+ for (i = degree; i-- > 0;) {
ret = ret*x + poly[i];
}
return ret;