]> git.donarmstrong.com Git - lilypond.git/commitdiff
(check_sol): no empty if bodies.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 22 Oct 2006 22:07:24 +0000 (22:07 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 22 Oct 2006 22:07:24 +0000 (22:07 +0000)
ChangeLog
flower/polynomial.cc

index c51e2364c7e7c0cddec4fe821d4518557c5e32c6..d01c0d4506627e03fe3003ad95a1bdef66e18b53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-10-23  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * flower/polynomial.cc (check_sol): no empty if bodies. 
+
 2006-10-22  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * stepmake/stepmake/po-vars.make: test change for GIT gateway.
index f6f229128074b8a5f8413a24149d3dc734cf05d6..8aa5d3a63b993bb39578fb7382961ef7ad4ad99d 100644 (file)
@@ -6,7 +6,11 @@
 
 #include "polynomial.hh"
 
+#include "warn.hh"
+
 #include <cmath>
+
+
 using namespace std;
 
 /*
@@ -167,10 +171,7 @@ Polynomial::check_sol (Real x) const
   Real d = p.eval (x);
 
   if (abs (f) > abs (d) * FUDGE)
-    ;
-  /*
-    warning ("x=%f is not a root of polynomial\n"
-    "f (x)=%f, f' (x)=%f \n", x, f, d);        */
+    programming_error ("not a root of polynomial\n");
 }
 
 void