com php-src: Fix unused value warnings in snprintf.c: main/snprintf.c

From: Date: Wed, 12 Jun 2019 11:17:25 +0000
Subject: com php-src: Fix unused value warnings in snprintf.c: main/snprintf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106720@lists.php.net to get a copy of this message
Commit: be36d922943b11ebfbb43112de1c48bef9e2d68a Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 13:02:56 +0200 Parents: 52d80ccd2401b3b67be08f7e584f04ca1174462e Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=be36d922943b11ebfbb43112de1c48bef9e2d68a Log: Fix unused value warnings in snprintf.c Changed paths: M main/snprintf.c Diff: diff --git a/main/snprintf.c b/main/snprintf.c index e3e0993..61a5dff 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -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); }

« previous php.cvs (#106720) next »