diff options
author | Joe Watkins <krakjoe@php.net> | 2016-04-29 10:20:27 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-04-29 10:20:27 +0100 |
commit | 12f826d7df6eceb2fe985fc0dd76b5393566e059 (patch) | |
tree | 24b40fcda9fdec9ded69ae76b2889293a7709f92 /sapi/cli/php_cli.c | |
parent | 19c0335609ac9a84eaec048ffb7fdcf1312689cd (diff) | |
parent | dbae1653daba7524f10642155c8c46a907970151 (diff) | |
download | php-git-12f826d7df6eceb2fe985fc0dd76b5393566e059.tar.gz |
Merge branch 'PHP-7.0'
* PHP-7.0:
fix size_t signed comparison
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 6683f21393..09ce00f9e7 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -304,7 +304,7 @@ static size_t sapi_cli_ub_write(const char *str, size_t str_length) /* {{{ */ if (cli_shell_callbacks.cli_shell_ub_write) { size_t ub_wrote; ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length); - if (ub_wrote > -1) { + if (ub_wrote != (size_t) -1) { return ub_wrote; } } |