mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix unused value warnings in snprintf.c
This commit is contained in:
@@ -568,7 +568,7 @@ typedef struct buf_area buffy;
|
||||
INS_CHAR( ch, sp, bep, cc ) ; \
|
||||
width-- ; \
|
||||
} \
|
||||
while ( width > len )
|
||||
while ( (size_t)width > len )
|
||||
|
||||
/*
|
||||
* Prefix the character ch to the string str
|
||||
@@ -1188,7 +1188,7 @@ fmt_error:
|
||||
s_len--;
|
||||
min_width--;
|
||||
}
|
||||
PAD((size_t)min_width, s_len, pad_char);
|
||||
PAD(min_width, s_len, pad_char);
|
||||
}
|
||||
/*
|
||||
* Print the string s.
|
||||
@@ -1199,7 +1199,7 @@ fmt_error:
|
||||
}
|
||||
|
||||
if (adjust_width && adjust == LEFT && (size_t)min_width > s_len)
|
||||
PAD((size_t)min_width, s_len, pad_char);
|
||||
PAD(min_width, s_len, pad_char);
|
||||
if (free_zcopy) {
|
||||
zval_ptr_dtor_str(&zcopy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user