From dbae1653daba7524f10642155c8c46a907970151 Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Fri, 29 Apr 2016 10:19:55 +0100 Subject: fix size_t signed comparison --- ext/readline/readline_cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/readline') 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; } /* }}} */ -- cgit v1.2.1