Skip to content

Commit aad476a

Browse files
committed
ext/bcmath
1 parent 397e020 commit aad476a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/bcmath/bcmath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ PHP_FUNCTION(bcround)
799799
ZEND_PARSE_PARAMETERS_END();
800800

801801
if (mode_object != NULL) {
802-
mode = php_math_round_mode_from_enum(mode_object);
802+
mode = php_math_round_mode_from_enum(zend_enum_fetch_case_id(mode_object));
803803
}
804804

805805
switch (mode) {

0 commit comments

Comments
 (0)