Skip to content

Commit 8b393c7

Browse files
committed
Remove redundant parens
1 parent 592de0f commit 8b393c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8232,7 +8232,7 @@ ZEND_API bool zend_binary_op_produces_error(uint32_t opcode, zval *op1, zval *op
82328232
/* Operation which cast float/float-strings to integers might produce incompatible float to int errors */
82338233
if (opcode == ZEND_SL || opcode == ZEND_SR || opcode == ZEND_BW_OR
82348234
|| opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR || opcode == ZEND_MOD) {
8235-
return (!zend_is_op_long_compatible(op1) || !zend_is_op_long_compatible(op2));
8235+
return !zend_is_op_long_compatible(op1) || !zend_is_op_long_compatible(op2);
82368236
}
82378237

82388238
return 0;
@@ -8254,7 +8254,7 @@ static inline bool zend_try_ct_eval_binary_op(zval *result, uint32_t opcode, zva
82548254
ZEND_API bool zend_unary_op_produces_error(uint32_t opcode, zval *op)
82558255
{
82568256
if (opcode == ZEND_BW_NOT) {
8257-
return (Z_TYPE_P(op) <= IS_TRUE || !zend_is_op_long_compatible(op));
8257+
return Z_TYPE_P(op) <= IS_TRUE || !zend_is_op_long_compatible(op);
82588258
}
82598259

82608260
return 0;

Zend/zend_operators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static zend_always_inline zend_long zend_dval_to_lval_cap(double d)
135135
/* }}} */
136136

137137
static zend_always_inline bool zend_is_long_compatible(double d, zend_long l) {
138-
return ((double)l == d);
138+
return (double)l == d;
139139
}
140140

141141
ZEND_API void zend_incompatible_double_to_long_error(double d);

0 commit comments

Comments
 (0)