]> www.ginac.de Git - cln.git/blobdiff - src/numtheory/cl_nt_jacobi.cc
Fix bug in converting cl_LF to float, double.
[cln.git] / src / numtheory / cl_nt_jacobi.cc
index 03a116982f375e1a5ba8daf6742c03dfad38f4c8..edc93bd36ea9350485ab0f256f44b2b4f303e451 100644 (file)
@@ -1,7 +1,7 @@
 // jacobi().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
 #include "cln/numtheory.h"
@@ -10,9 +10,9 @@
 // Implementation.
 
 #include "cln/integer.h"
-#include "cl_I.h"
-#include "cln/abort.h"
-#include "cl_xmacros.h"
+#include "integer/cl_I.h"
+#include "cln/exception.h"
+#include "base/cl_xmacros.h"
 
 namespace cln {
 
@@ -20,9 +20,9 @@ int jacobi (const cl_I& a, const cl_I& b)
 {
        // Check b > 0, b odd.
        if (!(b > 0))
-               cl_abort();
+               throw runtime_exception();
        if (!oddp(b))
-               cl_abort();
+               throw runtime_exception();
  {     Mutable(cl_I,a);
        Mutable(cl_I,b);
        // Ensure 0 <= a < b.