summaryrefslogtreecommitdiffstats
path: root/libdimension/polynomial.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-03 15:10:26 -0400
committerTavian Barnes <tavianator@gmail.com>2010-11-03 15:10:26 -0400
commitcf10131df6b18ebb31a341f00be47273eaf51da5 (patch)
treecfb7dd8a75bdf94b7da1bd8f4836f150ddd3ad96 /libdimension/polynomial.c
parent111a5646d12cca087d500554340f03b8aceea54f (diff)
downloaddimension-cf10131df6b18ebb31a341f00be47273eaf51da5.tar.xz
Fix ++i/--i thinko.
Diffstat (limited to 'libdimension/polynomial.c')
-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;
}