Skip to content

Fix [-Wenum-int-mismatch] compiler warnings #11352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/bcmath/libbcmath/src/bcmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int bc_modulo(bc_num num1, bc_num num2, bc_num *resul, int scale);

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

int bc_raisemod(bc_num base, bc_num expo, bc_num mo, bc_num *result, int scale);
zend_result bc_raisemod(bc_num base, bc_num expo, bc_num mo, bc_num *result, int scale);

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

Expand Down
4 changes: 2 additions & 2 deletions ext/ffi/ffi_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -3552,7 +3552,7 @@ static void parse(void) {
}
}

int zend_ffi_parse_decl(const char *str, size_t len) {
zend_result zend_ffi_parse_decl(const char *str, size_t len) {
if (SETJMP(FFI_G(bailout))==0) {
FFI_G(allow_vla) = 0;
FFI_G(attribute_parsing) = 0;
Expand All @@ -3565,7 +3565,7 @@ int zend_ffi_parse_decl(const char *str, size_t len) {
}
}

int zend_ffi_parse_type(const char *str, size_t len, zend_ffi_dcl *dcl) {
zend_result zend_ffi_parse_type(const char *str, size_t len, zend_ffi_dcl *dcl) {
int sym;

if (SETJMP(FFI_G(bailout))==0) {
Expand Down