com php-src: suggest parentheses around ‘&& ’ within ‘||’: main/streams /xp_socket.c

From: Date: Tue, 11 Aug 2015 13:43:38 +0000
Subject: com php-src: suggest parentheses around ‘&& ’ within ‘||’: main/streams /xp_socket.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88461@lists.php.net to get a copy of this message
Commit: 4f2c0e045132de51473b643c68e07e5b2c2e218b Author: Xinchen Hui <laruence@php.net> Tue, 11 Aug 2015 21:43:38 +0800 Parents: 4064ee30615280396db27ee86afafaf2a00dc9c9 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4f2c0e045132de51473b643c68e07e5b2c2e218b Log: suggest parentheses around ‘&&’ within ‘||’ Changed paths: M main/streams/xp_socket.c Diff: diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index da80a0a..e88bb91 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -326,7 +326,7 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void ret = recv(sock->socket, &buf, sizeof(buf), MSG_PEEK); err = php_socket_errno(); if (0 == ret || /* the counterpart did properly shutdown*/ - 0 > ret && err != EWOULDBLOCK && err != EAGAIN) { /* there was an unrecoverable error */ + (0 > ret && err != EWOULDBLOCK && err != EAGAIN)) { /* there was an unrecoverable error */ alive = 0; } }

« previous php.cvs (#88461) next »