Skip to content

Commit be36d92

Browse files
committed
Fix unused value warnings in snprintf.c
1 parent 52d80cc commit be36d92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/snprintf.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ typedef struct buf_area buffy;
568568
INS_CHAR( ch, sp, bep, cc ) ; \
569569
width-- ; \
570570
} \
571-
while ( width > len )
571+
while ( (size_t)width > len )
572572

573573
/*
574574
* Prefix the character ch to the string str
@@ -1188,7 +1188,7 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
11881188
s_len--;
11891189
min_width--;
11901190
}
1191-
PAD((size_t)min_width, s_len, pad_char);
1191+
PAD(min_width, s_len, pad_char);
11921192
}
11931193
/*
11941194
* Print the string s.
@@ -1199,7 +1199,7 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
11991199
}
12001200

12011201
if (adjust_width && adjust == LEFT && (size_t)min_width > s_len)
1202-
PAD((size_t)min_width, s_len, pad_char);
1202+
PAD(min_width, s_len, pad_char);
12031203
if (free_zcopy) {
12041204
zval_ptr_dtor_str(&zcopy);
12051205
}

0 commit comments

Comments
 (0)