From 5f1e01b2305f37715780a8315e6c2747705f5dfd Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 6 Dec 2006 14:56:37 +0100 Subject: [PATCH] bernstein: piecewise_lst::evaluate: fix typo --- bernstein/src/piecewise_lst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bernstein/src/piecewise_lst.cpp b/bernstein/src/piecewise_lst.cpp index f684e63..d9f86c8 100644 --- a/bernstein/src/piecewise_lst.cpp +++ b/bernstein/src/piecewise_lst.cpp @@ -222,7 +222,7 @@ numeric piecewise_lst::evaluate(const exvector& values) assert(is_a(ex_val)); lst val = ex_to(ex_val);; ex max = val.op(0); - for (int j = 1; j < val.nops(); ++i) + for (int j = 1; j < val.nops(); ++j) if (val.op(j) > max) max = val.op(j); assert(is_a(max)); -- 2.11.4.GIT