From f68dc94aa727085040650b4c9354672f2f62ee6a Mon Sep 17 00:00:00 2001 From: Reeze Xia Date: Wed, 27 May 2015 10:45:19 +0800 Subject: [PATCH] Remove useless cast --- sapi/phpdbg/phpdbg_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c index 58ea06e299..47899abf66 100644 --- a/sapi/phpdbg/phpdbg_io.c +++ b/sapi/phpdbg/phpdbg_io.c @@ -185,7 +185,7 @@ PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) { } ret = read(sock, ptr, len); - if (ret == (size_t)-1 && errno == EINTR) { + if (ret == -1 && errno == EINTR) { /* Read was interrupted, retry once */ ret = read(sock, ptr, len); } -- 2.50.1