summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdimension/polynomial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/polynomial.c b/libdimension/polynomial.c
index 5dde4e9..dc4cb6a 100644
--- a/libdimension/polynomial.c
+++ b/libdimension/polynomial.c
@@ -25,7 +25,7 @@
static inline size_t
dmnsn_real_degree(const double poly[], size_t degree)
{
- for (ssize_t i = degree; i >= 0; ++i) {
+ for (ssize_t i = degree; i >= 0; --i) {
if (fabs(poly[i]) >= dmnsn_epsilon) {
return i;
}