1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-27 04:46:26 +01:00

Merge pull request #817 from terrafrost/php7

BigInteger: fix PHP7 error

* terrafrost/php7:
  BigInteger: fix PHP7 error
This commit is contained in:
Andreas Fischer 2015-09-14 14:07:24 +02:00
commit 4c7a2b5d73

View File

@ -3557,7 +3557,7 @@ class Math_BigInteger
switch (MATH_BIGINTEGER_MODE) { switch (MATH_BIGINTEGER_MODE) {
case MATH_BIGINTEGER_MODE_GMP: case MATH_BIGINTEGER_MODE_GMP:
if (!empty($result->bitmask->value)) { if ($this->bitmask !== false) {
$result->value = gmp_and($result->value, $result->bitmask->value); $result->value = gmp_and($result->value, $result->bitmask->value);
} }