1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

fix error in PHP EvalBarrett Engine:

This commit is contained in:
terrafrost 2022-03-11 18:38:01 -06:00
parent 26d8f7a250
commit f04a4e6fda

View File

@ -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) {