blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
}
}
blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
} else if (x < 0) {
cap = 1;
blk = new Blk[1];
sign = negative;
len = 1;
- *blk = Blk(-x);
+ blk[0] = Blk(-x);
} else
sign = zero;
}
blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
}
}
blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
} else if (x < 0) {
cap = 1;
blk = new Blk[1];
sign = negative;
len = 1;
- *blk = Blk(-x);
+ blk[0] = Blk(-x);
} else
sign = zero;
}
blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
}
}
blk = new Blk[1];
sign = positive;
len = 1;
- *blk = Blk(x);
+ blk[0] = Blk(x);
} else if (x < 0) {
cap = 1;
blk = new Blk[1];
sign = negative;
len = 1;
- *blk = Blk(-x);
+ blk[0] = Blk(-x);
} else
sign = zero;
}
return 0;
case positive:
if (len == 1)
- return *blk;
+ return blk[0];
else
throw "BigInteger operator unsigned long() const: Value is too big for an unsigned long";
case negative:
case zero:
return 0;
case positive:
- if (len == 1 && (*blk & ~lMask) == 0)
- return long(*blk);
+ if (len == 1 && (blk[0] & ~lMask) == 0)
+ return long(blk[0]);
else
throw "BigInteger operator long() const: Value is too big for a long";
case negative:
- if (len == 1 && (*blk & ~lMask) == 0)
- return -long(*blk);
+ if (len == 1 && (blk[0] & ~lMask) == 0)
+ return -long(blk[0]);
else
throw "BigInteger operator long() const: Value is too big for a long";
default:
case zero:
return 0;
case positive:
- if (len == 1 && (*blk & ~uiMask) == 0)
- return (unsigned int)(*blk);
+ if (len == 1 && (blk[0] & ~uiMask) == 0)
+ return (unsigned int)(blk[0]);
else
throw "BigInteger operator unsigned int() const: Value is too big for an unsigned int";
case negative:
case zero:
return 0;
case positive:
- if (len == 1 && (*blk & ~iMask) == 0)
- return int(*blk);
+ if (len == 1 && (blk[0] & ~iMask) == 0)
+ return int(blk[0]);
else
throw "BigInteger operator int() const: Value is too big for an int";
case negative:
- if (len == 1 && (*blk & ~iMask) == 0)
- return -int(*blk);
+ if (len == 1 && (blk[0] & ~iMask) == 0)
+ return -int(blk[0]);
else
throw "BigInteger operator int() const: Value is too big for an int";
default:
case zero:
return 0;
case positive:
- if (len == 1 && (*blk & ~usMask) == 0)
- return (unsigned short)(*blk);
+ if (len == 1 && (blk[0] & ~usMask) == 0)
+ return (unsigned short)(blk[0]);
else
throw "BigInteger operator unsigned short() const: Value is too big for an unsigned short";
case negative:
case zero:
return 0;
case positive:
- if (len == 1 && (*blk & ~sMask) == 0)
- return short(*blk);
+ if (len == 1 && (blk[0] & ~sMask) == 0)
+ return short(blk[0]);
else
throw "BigInteger operator short() const: Value is too big for a short";
case negative:
- if (len == 1 && (*blk & ~sMask) == 0)
- return -short(*blk);
+ if (len == 1 && (blk[0] & ~sMask) == 0)
+ return -short(blk[0]);
else
throw "BigInteger operator short() const: Value is too big for a short";
default:
allocate(1);
sign = positive;
len = 1;
- *blk = 1;
+ blk[0] = 1;
break;
case positive:
BigUnsigned::operator ++();
allocate(1);
sign = negative;
len = 1;
- *blk = 1;
+ blk[0] = 1;
break;
case negative:
BigUnsigned::operator ++();