mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
fix size_t signed comparison
This commit is contained in:
parent
a5718539b1
commit
dbae1653da
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue