Skip to content

Commit c0be847

Browse files
committed
Prevent possible future precedence issues in PHP_SOCKVAL_IS_SET
1 parent 0fd8aae commit c0be847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_network.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ typedef struct {
272272
#define PHP_SOCKVAL_TCP_KEEPCNT (1 << 2)
273273
#define PHP_SOCKVAL_TCP_KEEPINTVL (1 << 3)
274274

275-
#define PHP_SOCKVAL_IS_SET(sockvals, opt) (sockvals->mask & opt)
275+
#define PHP_SOCKVAL_IS_SET(sockvals, opt) ((sockvals)->mask & (opt))
276276

277277
typedef struct {
278278
unsigned int mask;

0 commit comments

Comments
 (0)