x86_64 fixes
This commit is contained in:
parent
13f035b905
commit
bc69e46ad1
@ -776,10 +776,11 @@ static int dprintf_formatf(
|
||||
/* Decimal integer. */
|
||||
base = 10;
|
||||
|
||||
is_neg = (p->data.num.as_signed < (mp_intmax_t)0) ? 1 : 0;
|
||||
signed_num = p->data.num.as_signed;
|
||||
is_neg = (signed_num < (mp_intmax_t)0) ? 1 : 0;
|
||||
if(is_neg) {
|
||||
/* signed_num might fail to hold absolute negative minimum by 1 */
|
||||
signed_num = p->data.num.as_signed + (mp_intmax_t)1;
|
||||
signed_num += (mp_intmax_t)1;
|
||||
signed_num = -signed_num;
|
||||
num = (mp_uintmax_t)signed_num;
|
||||
num += (mp_uintmax_t)0x1;
|
||||
|
Loading…
Reference in New Issue
Block a user