diff --git a/phpseclib/Math/BigInteger/Engines/BCMath.php b/phpseclib/Math/BigInteger/Engines/BCMath.php index cc3ff79e..db30a87f 100644 --- a/phpseclib/Math/BigInteger/Engines/BCMath.php +++ b/phpseclib/Math/BigInteger/Engines/BCMath.php @@ -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;