summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-04-29 10:20:27 +0100
committerJoe Watkins <krakjoe@php.net>2016-04-29 10:20:27 +0100
commit12f826d7df6eceb2fe985fc0dd76b5393566e059 (patch)
tree24b40fcda9fdec9ded69ae76b2889293a7709f92 /ext/readline
parent19c0335609ac9a84eaec048ffb7fdcf1312689cd (diff)
parentdbae1653daba7524f10642155c8c46a907970151 (diff)
downloadphp-git-12f826d7df6eceb2fe985fc0dd76b5393566e059.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: fix size_t signed comparison
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline_cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c
index 6f4e47d42b..2cce2292f4 100644
--- a/ext/readline/readline_cli.c
+++ b/ext/readline/readline_cli.c
@@ -106,7 +106,8 @@ static size_t readline_shell_ub_write(const char *str, size_t str_length) /* {{{
caller (sapi_cli_single_write in sapi/cli) which will actually
write due to -1 return code */
php_last_char = str[str_length-1];
- return -1;
+
+ return (size_t) -1;
}
/* }}} */