Skip to content

Commit 82e761e

Browse files
authored
Fix [-Wenum-int-mismatch] compiler warnings (#11352)
1 parent 91fd564 commit 82e761e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/bcmath/libbcmath/src/bcmath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int bc_modulo(bc_num num1, bc_num num2, bc_num *resul, int scale);
129129

130130
int bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, int scale);
131131

132-
int bc_raisemod(bc_num base, bc_num expo, bc_num mo, bc_num *result, int scale);
132+
zend_result bc_raisemod(bc_num base, bc_num expo, bc_num mo, bc_num *result, int scale);
133133

134134
void bc_raise(bc_num num1, bc_num num2, bc_num *resul, int scale);
135135

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)