summaryrefslogtreecommitdiff
path: root/ext/readline
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 /ext/readline
parenta5718539b16616bb23fb2897124733c0514454bd (diff)
downloadphp-git-dbae1653daba7524f10642155c8c46a907970151.tar.gz
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 3332fa56e0..a90b1387df 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;
}
/* }}} */