mawinkle %!s(int64=6) %!d(string=hai) anos
pai
achega
4fe5a1cb87
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);