Skip to content

Commit 0a900dc

Browse files
committed
displaying siginfo si_addr update.
since it is casted to zend_long, better using add_assoc_long_ex due to loss of precision with add_assoc_double_ex
1 parent fcbcab2 commit 0a900dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ static void pcntl_siginfo_to_zval(int signo, siginfo_t *siginfo, zval *user_sigi
11491149
case SIGFPE:
11501150
case SIGSEGV:
11511151
case SIGBUS:
1152-
add_assoc_double_ex(user_siginfo, "addr", sizeof("addr")-1, (zend_long)siginfo->si_addr);
1152+
add_assoc_long_ex(user_siginfo, "addr", sizeof("addr")-1, (zend_long)siginfo->si_addr);
11531153
break;
11541154
#if defined(SIGPOLL) && !defined(__CYGWIN__)
11551155
case SIGPOLL:

0 commit comments

Comments
 (0)