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:
terrafrost 2022-03-10 05:24:30 -06:00
parent 42853f2805
commit 815aa23b39

View File

@ -663,7 +663,7 @@ class BCMath extends Engine
public function testBit($x)
{
return bccomp(
bcmod($this->value, bcpow('2', $x + 1, 0), 0),
bcmod($this->value, bcpow('2', $x + 1, 0)),
bcpow('2', $x, 0),
0
) >= 0;