diff options
author | Joe Watkins <krakjoe@php.net> | 2016-04-29 10:19:55 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-04-29 10:19:55 +0100 |
commit | dbae1653daba7524f10642155c8c46a907970151 (patch) | |
tree | 7ab0c309bb5c1f8d3d49749ddc9f22c820afd310 /ext/readline | |
parent | a5718539b16616bb23fb2897124733c0514454bd (diff) | |
download | php-git-dbae1653daba7524f10642155c8c46a907970151.tar.gz |
fix size_t signed comparison
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline_cli.c | 3 |
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; } /* }}} */ |