Skip to content

Commit

Permalink
Merge branch '1.0' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Feb 24, 2024
2 parents 2870c8f + c55b751 commit 939f96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpseclib/Math/BigInteger.php
Expand Up @@ -742,7 +742,7 @@ function getLength()

$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;
}

Expand All @@ -753,7 +753,7 @@ function getLength()
*/
function getLengthInBytes()
{
return ceil($this->getLength() / 8);
return (int) ceil($this->getLength() / 8);
}

/**
Expand Down

0 comments on commit 939f96c

Please sign in to comment.