summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-04-29 10:19:55 +0100
committerJoe Watkins <krakjoe@php.net>2016-04-29 10:19:55 +0100
commitdbae1653daba7524f10642155c8c46a907970151 (patch)
tree7ab0c309bb5c1f8d3d49749ddc9f22c820afd310 /sapi/cli/php_cli.c
parenta5718539b16616bb23fb2897124733c0514454bd (diff)
downloadphp-git-dbae1653daba7524f10642155c8c46a907970151.tar.gz
fix size_t signed comparison
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 5d789d2626..978c8b332e 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;
}
}