]> www.ginac.de Git - cln.git/blobdiff - src/integer/elem/cl_I_div.cc
Avoid some "suggest explicit braces to avoid ambiguous ‘else’" warnings.
[cln.git] / src / integer / elem / cl_I_div.cc
index b0307d78dc246d308e9b19c366eb08791bdf49c4..79a2c6783e0c08356a27bbcbf62520f1ce326abb 100644 (file)
@@ -1,15 +1,15 @@
 // cl_divide().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_I.h"
+#include "integer/cl_I.h"
 
 
 // Implementation.
 
-#include "cl_N.h"
+#include "cln/exception.h"
 
 namespace cln {
 
@@ -25,7 +25,7 @@ namespace cln {
             // auch y Fixnum >=0
             { var uintV x_ = FN_to_UV(x);
               var uintV y_ = FN_to_UV(y);
-              if (y_==0) { cl_error_division_by_0(); }
+              if (y_==0) { throw division_by_0_exception(); }
               elif (x_ < y_)
                 // Trivialfall: q=0, r=x
                 goto trivial;
@@ -101,7 +101,7 @@ namespace cln {
           // x in NDS umwandeln, als UDS auffassen:
           BN_to_NDS_nocopy(x, x_MSDptr=,x_len=,x_LSDptr=);
           // y in NDS umwandeln, als UDS auffassen:
-          I_to_NDS_nocopy(y, y_MSDptr=,y_len=,y_LSDptr=,/*cl_true*/cl_false,);
+          I_to_NDS_nocopy(y, y_MSDptr=,y_len=,y_LSDptr=,/*true*/false,);
           // dividieren:
          {var DS q;
           var DS r;