mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-31 21:21:55 +00:00
BigInteger/Engines/BCMath: bcmod got a third param in PHP 7.2.0
the third parameter also isn't set in any other bcmod call and isn't needed for bccomp anyway as bccomp('0.000', '0') == bccomp('0', '0')
This commit is contained in:
parent
42853f2805
commit
815aa23b39
@ -663,7 +663,7 @@ class BCMath extends Engine
|
|||||||
public function testBit($x)
|
public function testBit($x)
|
||||||
{
|
{
|
||||||
return bccomp(
|
return bccomp(
|
||||||
bcmod($this->value, bcpow('2', $x + 1, 0), 0),
|
bcmod($this->value, bcpow('2', $x + 1, 0)),
|
||||||
bcpow('2', $x, 0),
|
bcpow('2', $x, 0),
|
||||||
0
|
0
|
||||||
) >= 0;
|
) >= 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user