Commit 578f42d5 authored by Yang Tse's avatar Yang Tse
Browse files

typecast constant in comparison

parent e3ad6d2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -763,7 +763,7 @@ static int dprintf_formatf(
      /* Decimal integer.  */
      base = 10;

      is_neg = p->data.num.as_signed < 0;
      is_neg = (p->data.num.as_signed < (mp_intmax_t)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;