1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-03 18:18:05 +01:00

BigInteger/Engines/PHP: trim 0's when a precision is being used

This commit is contained in:
terrafrost 2022-03-08 23:37:29 -06:00
parent 824b232b47
commit 2f57517bad

View File

@ -771,6 +771,8 @@ abstract class PHP extends Engine
for ($i = 0; $i < $length; ++$i) {
$value[$i] = $value[$i] & $result->bitmask->value[$i];
}
$value = static::trim($value);
}
return $result;