Explorar el Código

Fixing bug with inner compare loop.

Samuel Jaffe hace 8 años
padre
commit
c3d890af78
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/bignum_helper.cpp

+ 1 - 1
src/bignum_helper.cpp

@@ -134,7 +134,7 @@ namespace math { namespace detail {
       do {
         subtract_nounderflow(remainder, value, shift);
         add(accum, powers[ipow], shift);
-      } while (compare(remainder, value) >= 0); // Up to 9 times
+      } while (compare(remainder, value, shift) >= 0); // Up to 9 times
     } while (compare(remainder, divisor) >= 0);
     return accum;
   }