BigInteger: update bitwise_not fix for 2.0

This commit is contained in:
terrafrost 2017-10-05 05:39:00 -05:00
parent 245e7a15ca
commit 6d51f2bf85

View File

@ -2908,7 +2908,7 @@ class BigInteger
// (will always result in a smaller number. ie. ~1 isn't 1111 1110 - it's 0)
$temp = $this->toBytes();
if ($temp == '') {
return $this->_normalize(new Math_BigInteger());
return $this->_normalize(new static());
}
$pre_msb = decbin(ord($temp[0]));
$temp = ~$temp;