Skip to content

Commit

Permalink
Fix incompatible pointer warning in zend_test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Apr 11, 2019
1 parent d31104f commit ee45565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/zend_test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static zend_function *zend_test_class_method_get(zend_object **object, zend_stri
zend_internal_function *fptr;

if (EXPECTED(EG(trampoline).common.function_name == NULL)) {
fptr = &EG(trampoline);
fptr = (zend_internal_function *) &EG(trampoline);
} else {
fptr = emalloc(sizeof(zend_internal_function));
}
Expand All @@ -173,7 +173,7 @@ static zend_function *zend_test_class_static_method_get(zend_class_entry *ce, ze
zend_internal_function *fptr;

if (EXPECTED(EG(trampoline).common.function_name == NULL)) {
fptr = &EG(trampoline);
fptr = (zend_internal_function *) &EG(trampoline);
} else {
fptr = emalloc(sizeof(zend_internal_function));
}
Expand Down

0 comments on commit ee45565

Please sign in to comment.