Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2024-02-24 14:16:44 -06:00
commit 939f96c4e2
1 changed files with 2 additions and 2 deletions

View File

@ -742,7 +742,7 @@ class BigInteger
$max = count($this->value) - 1;
return $max != -1 ?
$max * self::$base + ceil(log($a->value[$max] + 1, 2)) :
$max * self::$base + intval(ceil(log($this->value[$max] + 1, 2))) :
0;
}
@ -753,7 +753,7 @@ class BigInteger
*/
function getLengthInBytes()
{
return ceil($this->getLength() / 8);
return (int) ceil($this->getLength() / 8);
}
/**