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:
parent
824b232b47
commit
2f57517bad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user