Skip to content

Commit

Permalink
Adjust condition
Browse files Browse the repository at this point in the history
Fix warning: comparison between pointer and integer
  • Loading branch information
Jeckerson committed Nov 12, 2023
1 parent 307eaca commit 6b80cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ int zephir_fast_count_int(zval *value)
*/
int zephir_function_exists(const zval *function_name)
{
if (zend_hash_str_exists(CG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)) != NULL) {
if (zend_hash_str_exists(CG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name))) {
return SUCCESS;
}

Expand Down

0 comments on commit 6b80cc2

Please sign in to comment.