Merge branch '3.0'

This commit is contained in:
terrafrost 2023-08-31 09:30:23 -05:00
commit 0893147281

View File

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