set toHex() params
set toHex() params $twos_compliment to false when is not negative
This commit is contained in:
parent
f874aea69c
commit
6bd06644ae
@ -33,7 +33,7 @@ class IntegerFormatter implements IFormatter
|
|||||||
$digit = intval($arguments[1]);
|
$digit = intval($arguments[1]);
|
||||||
}
|
}
|
||||||
$bn = Utils::toBn($value);
|
$bn = Utils::toBn($value);
|
||||||
$bnHex = $bn->toHex();
|
$bnHex = $bn->toHex($bn->is_negative);
|
||||||
$padded = mb_substr($bnHex, 0, 1);
|
$padded = mb_substr($bnHex, 0, 1);
|
||||||
|
|
||||||
if ($padded !== 'f') {
|
if ($padded !== 'f') {
|
||||||
|
Loading…
Reference in New Issue
Block a user