Skip to content

Commit 8b62674

Browse files
committed
readd missing cast
1 parent c78aec3 commit 8b62674

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ ZEND_API bool ZEND_FASTCALL zend_flf_parse_arg_long_slow(const zval *arg, zend_l
625625
ZEND_API double ZEND_FASTCALL zend_parse_arg_double_weak(const zval *arg, uint32_t arg_num) /* {{{ */
626626
{
627627
if (EXPECTED(Z_TYPE_P(arg) == IS_LONG)) {
628-
return Z_LVAL_P(arg);
628+
return (double)Z_LVAL_P(arg);
629629
} else if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) {
630630
zend_long l;
631631
double dval;

0 commit comments

Comments
 (0)