summaryrefslogtreecommitdiff
path: root/ext/opcache/shared_alloc_shm.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-04-18 17:32:46 +0800
committerXinchen Hui <laruence@php.net>2013-04-18 17:32:46 +0800
commit0704e4badb3abdfbdd5efc2b6d51c8abd6e5629a (patch)
treea4e0cfa2bc13fe130d03a214595b9217fbd38312 /ext/opcache/shared_alloc_shm.c
parent5a897009a83bba1a0f32982d7438d6967d1eddeb (diff)
downloadphp-git-0704e4badb3abdfbdd5efc2b6d51c8abd6e5629a.tar.gz
Fixed compiler warning "cast from pointer to integer of different size"
Diffstat (limited to 'ext/opcache/shared_alloc_shm.c')
-rw-r--r--ext/opcache/shared_alloc_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/shared_alloc_shm.c b/ext/opcache/shared_alloc_shm.c
index d2b842304b..d53236b3b0 100644
--- a/ext/opcache/shared_alloc_shm.c
+++ b/ext/opcache/shared_alloc_shm.c
@@ -111,7 +111,7 @@ static int create_segments(size_t requested_size, zend_shared_segment_shm ***sha
}
shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0);
- if (((int) shared_segments[i].common.p) == -1) {
+ if (shared_segments[i].common.p == (void *)-1) {
*error_in = "shmat";
shmctl(shared_segments[i].shm_id, IPC_RMID, &sds);
return ALLOC_FAILURE;