Skip to content

Commit 63983e0

Browse files
KennedyTedesconikic
authored andcommitted
Use ZVAL_TRUE() directly
Just a minor change.
1 parent e44f610 commit 63983e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,7 +4956,7 @@ void zend_compile_throw(znode *result, zend_ast *ast) /* {{{ */
49564956
/* Mark this as an "expression throw" for opcache. */
49574957
opline->extended_value = ZEND_THROW_IS_EXPR;
49584958
result->op_type = IS_CONST;
4959-
ZVAL_BOOL(&result->u.constant, 1);
4959+
ZVAL_TRUE(&result->u.constant);
49604960
}
49614961
}
49624962
/* }}} */
@@ -8855,7 +8855,7 @@ void zend_compile_exit(znode *result, zend_ast *ast) /* {{{ */
88558855
}
88568856

88578857
result->op_type = IS_CONST;
8858-
ZVAL_BOOL(&result->u.constant, 1);
8858+
ZVAL_TRUE(&result->u.constant);
88598859
}
88608860
/* }}} */
88618861

0 commit comments

Comments
 (0)