mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 20:38:29 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
939f96c4e2
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user