]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/polynomial.cc
(check_sol): no empty if bodies.
[lilypond.git] / flower / polynomial.cc
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