BigInteger: fix more PHP32-bit errors

This commit is contained in:
terrafrost 2023-08-31 09:28:16 -05:00
parent aeac69b846
commit 615d6cfc7c

View File

@ -80,10 +80,10 @@ class PHP32 extends PHP
}
$step = count($vals) & 3;
if ($step) {
$digit = floor($digit / pow(2, 2 * $step));
$digit = (int) floor($digit / pow(2, 2 * $step));
}
if ($step != 3) {
$digit &= static::MAX_DIGIT;
$digit = (int) fmod($digit, static::BASE_FULL);
$i++;
}
$vals[] = $digit;