Skip to content

Commit ade0929

Browse files
committed
Explicitly cast the return value of bcmath_number_compare to int
1 parent 4e92c96 commit ade0929

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
@@ -1279,7 +1279,7 @@ static int bcmath_number_compare(zval *op1, zval *op2)
12791279
bc_free_num(&n2);
12801280
}
12811281

1282-
return ret;
1282+
return (int) ret;
12831283

12841284
fallback:
12851285
return zend_std_compare_objects(op1, op2);

0 commit comments

Comments
 (0)