This commit is contained in:
Kaiesh Vohra 2022-08-14 08:26:36 +00:00 committed by GitHub
commit ba16aa7ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(true); $bnHex = $bn->toHex(Utils::isNegative($value));
$padded = mb_substr($bnHex, 0, 1); $padded = mb_substr($bnHex, 0, 1);
if ($padded !== 'f') { if ($padded !== 'f') {