]> www.ginac.de Git - cln.git/blobdiff - src/integer/gcd/cl_I_gcd_aux2.cc
Avoid shifting a 32-bit zero value by more than 31 bits.
[cln.git] / src / integer / gcd / cl_I_gcd_aux2.cc
index 0b8bf94bcc4af6416ee10ca31d23d869b88579e1..507220d9836993d8fc4c5640dfa4b579ceca713f 100644 (file)
@@ -47,7 +47,7 @@ static uintD floorDD (uintDD x, uintDD y)
                if (y_shifted == 0)
                        q = highD(x) >> shift;
                else
-                       divuD(x,y_shifted, q =, );
+                       divuD(highD(x) >> shift, y_shifted, q =, );
        }
        // May need to increment q at most twice.
        {