Skip to content

Commit 554541c

Browse files
committed
ext/ffi: Fix [-Wenum-int-mismatch] compiler warning
1 parent d775ba8 commit 554541c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ffi/ffi_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,7 +3552,7 @@ static void parse(void) {
35523552
}
35533553
}
35543554

3555-
int zend_ffi_parse_decl(const char *str, size_t len) {
3555+
zend_result zend_ffi_parse_decl(const char *str, size_t len) {
35563556
if (SETJMP(FFI_G(bailout))==0) {
35573557
FFI_G(allow_vla) = 0;
35583558
FFI_G(attribute_parsing) = 0;
@@ -3565,7 +3565,7 @@ int zend_ffi_parse_decl(const char *str, size_t len) {
35653565
}
35663566
}
35673567

3568-
int zend_ffi_parse_type(const char *str, size_t len, zend_ffi_dcl *dcl) {
3568+
zend_result zend_ffi_parse_type(const char *str, size_t len, zend_ffi_dcl *dcl) {
35693569
int sym;
35703570

35713571
if (SETJMP(FFI_G(bailout))==0) {

0 commit comments

Comments
 (0)