]> www.ginac.de Git - cln.git/blobdiff - src/numtheory/cl_nt_cornacchia1.cc
64-bit mingw port: Fix undefined references to cl_I_constructor_from_[U]L.
[cln.git] / src / numtheory / cl_nt_cornacchia1.cc
index dfdb89f4dbcbf4bf1dffaa6448d3a4a9094fdc9b..3224ccff64a123979cccaa1facb70643be0d7cb8 100644 (file)
@@ -1,7 +1,7 @@
 // cornacchia1().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
 #include "cln/numtheory.h"
@@ -9,7 +9,7 @@
 
 // Implementation.
 
-#include "cl_xmacros.h"
+#include "base/cl_xmacros.h"
 
 namespace cln {
 
@@ -80,7 +80,7 @@ const cornacchia_t cornacchia1 (const cl_I& d, const cl_I& p)
        if (init.condition)
                return init.condition;
        if (init.solutions != 2)
-               cl_abort();
+               throw runtime_exception();
        // Euclidean algorithm.
        var cl_I a = p;
        var cl_I b = R->retract(init.solution[0]);