mawinkle 6 năm trước cách đây
mục cha
commit
4fe5a1cb87
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      kek/BigInteger.cpp

+ 2 - 2
kek/BigInteger.cpp

@@ -1965,11 +1965,11 @@ class BigInteger{
         unsigned int bitpos = 1 << ((ebits-1) & (32-1));
 
         int buf = 0;
-        int elen = exp.length;
+        int elen = exp.size();
         int eIndex = 0;
         for (int i = 0; i <= wbits; i++) {
             buf = (buf << 1) | (((exp[eIndex] & bitpos) != 0)?1:0);
-            bitpos >>>= 1;
+            bitpos >>= 1;
             if (bitpos == 0) {
                 eIndex++;
                 bitpos = 1 << (32-1);