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/zend_shared_alloc.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/zend_shared_alloc.c')
-rw-r--r-- | ext/opcache/zend_shared_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index ebfdea276d..5405751ac3 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -137,7 +137,7 @@ static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int int i; /* cleanup */ for (i = 0; i < *shared_segments_count; i++) { - if ((*shared_segments_p)[i]->p && (int)(*shared_segments_p)[i]->p != -1) { + if ((*shared_segments_p)[i]->p && (*shared_segments_p)[i]->p != (void *)-1) { S_H(detach_segment)((*shared_segments_p)[i]); } } |