Procházet zdrojové kódy

Fixing bug with inner compare loop.

Samuel Jaffe před 8 roky
rodič
revize
c3d890af78
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
   }