浏览代码

Fixing bug with inner compare loop.

Samuel Jaffe 8 年之前
父节点
当前提交
c3d890af78
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
   }