Skip to content

Commit

Permalink
fix datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Sep 30, 2015
1 parent 61e2174 commit f03febd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apc_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ apc_segment_t apc_shm_attach(int shmid, size_t size)
{
apc_segment_t segment; /* shm segment */

if ((long)(segment.shmaddr = shmat(shmid, 0, 0)) == -1) {
if ((zend_long)(segment.shmaddr = shmat(shmid, 0, 0)) == -1) {
apc_error("apc_shm_attach: shmat failed:");
}

#ifdef APC_MEMPROTECT

if ((long)(segment.roaddr = shmat(shmid, 0, SHM_RDONLY)) == -1) {
if ((zend_long)(segment.roaddr = shmat(shmid, 0, SHM_RDONLY)) == -1) {
segment.roaddr = NULL;
}

Expand Down

0 comments on commit f03febd

Please sign in to comment.