Skip to content

Commit 0420bc6

Browse files
committed
Code style
1 parent ab1c848 commit 0420bc6

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Zend/zend_language_scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ ZEND_API zend_op_array *zend_compile_ast(
685685
{
686686
zend_string *original_compiled_filename = CG(compiled_filename);
687687
bool original_in_compilation = CG(in_compilation);
688-
CG(in_compilation) = 1;
688+
CG(in_compilation) = true;
689689
CG(ast) = ast;
690690

691691
zend_set_compiled_filename(filename);

Zend/zend_partial.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,8 @@ static zend_result zp_get_param_default_value(zval *result, zend_function *funct
378378
if (EXPECTED(opline->opcode == ZEND_RECV_INIT)) {
379379
ZVAL_COPY(result, RT_CONSTANT(opline, opline->op2));
380380
return SUCCESS;
381-
} else {
382-
ZEND_ASSERT(opline->opcode == ZEND_RECV);
383381
}
382+
ZEND_ASSERT(opline->opcode == ZEND_RECV);
384383
} else {
385384
if (function->common.fn_flags & ZEND_ACC_USER_ARG_INFO) {
386385
goto error;

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ static char *zend_accel_uintptr_hex(char *dest, uintptr_t n)
20342034
static zend_string *zend_accel_pfa_key(const zend_op *declaring_opline,
20352035
const zend_function *called_function)
20362036
{
2037-
size_t key_len = strlen(PFA_KEY_PREFIX) + (sizeof(uintptr_t)*2) + strlen(":") + (sizeof(uintptr_t)*2);
2037+
const size_t key_len = strlen(PFA_KEY_PREFIX) + (sizeof(uintptr_t)*2) + strlen(":") + (sizeof(uintptr_t)*2);
20382038
zend_string *key = zend_string_alloc(key_len, 0);
20392039
char *dest = ZSTR_VAL(key);
20402040

0 commit comments

Comments
 (0)