mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-03 10:08:04 +01:00
fix error in PHP EvalBarrett Engine:
This commit is contained in:
parent
26d8f7a250
commit
f04a4e6fda
@ -283,6 +283,7 @@ abstract class EvalBarrett extends Base
|
||||
$sum = $' . $result . '[$i] + $_' . $y . '[$i] + $carry;
|
||||
$carry = $sum >= ' . self::float2string($class::BASE_FULL) . ';
|
||||
$' . $result . '[$i] = $carry ? $sum - ' . self::float2string($class::BASE_FULL) . ' : $sum;
|
||||
++$i;
|
||||
}
|
||||
if ($carry) {
|
||||
for (; $' . $result . '[$i] == ' . $class::MAX_DIGIT . '; ++$i) {
|
||||
|
Loading…
Reference in New Issue
Block a user