mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-11 08:08:52 +00:00
Merge branch '3.0'
This commit is contained in:
commit
d22639841a
@ -75,9 +75,12 @@ class PHP32 extends PHP
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
}
|
}
|
||||||
list(, $digit) = unpack('N', substr($val, $i, 4));
|
list(, $digit) = unpack('N', substr($val, $i, 4));
|
||||||
|
if ($digit < 0) {
|
||||||
|
$digit += 0xFFFFFFFF + 1;
|
||||||
|
}
|
||||||
$step = count($vals) & 3;
|
$step = count($vals) & 3;
|
||||||
if ($step) {
|
if ($step) {
|
||||||
$digit >>= 2 * $step;
|
$digit = floor($digit / pow(2, 2 * $step));
|
||||||
}
|
}
|
||||||
if ($step != 3) {
|
if ($step != 3) {
|
||||||
$digit &= static::MAX_DIGIT;
|
$digit &= static::MAX_DIGIT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user