diff options
author | Xinchen Hui <laruence@php.net> | 2013-04-18 17:32:46 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2013-04-18 17:32:46 +0800 |
commit | 0704e4badb3abdfbdd5efc2b6d51c8abd6e5629a (patch) | |
tree | a4e0cfa2bc13fe130d03a214595b9217fbd38312 /ext/opcache/shared_alloc_shm.c | |
parent | 5a897009a83bba1a0f32982d7438d6967d1eddeb (diff) | |
download | php-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.c | 2 |
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; |