mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:04:15 +03:00
explicit value assignment for comparison result
This commit is contained in:
parent
578f42d588
commit
70b1cd798f
1 changed files with 2 additions and 2 deletions
|
|
@ -726,7 +726,7 @@ static int dprintf_formatf(
|
|||
else
|
||||
prec = -1;
|
||||
|
||||
is_alt = p->flags & FLAGS_ALT;
|
||||
is_alt = (p->flags & FLAGS_ALT) ? 1 : 0;
|
||||
|
||||
switch (p->type) {
|
||||
case FORMAT_INT:
|
||||
|
|
@ -763,7 +763,7 @@ static int dprintf_formatf(
|
|||
/* Decimal integer. */
|
||||
base = 10;
|
||||
|
||||
is_neg = (p->data.num.as_signed < (mp_intmax_t)0);
|
||||
is_neg = (p->data.num.as_signed < (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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue