com php-src: Use size_t instead of int: ext/opcache /zend_shared_alloc.c
| From: | Dmitry Stogov | Date: | Mon, 10 Jun 2013 06:36:35 +0000 |
| Subject: | com php-src: Use size_t instead of int: ext/opcache /zend_shared_alloc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72339@lists.php.net to get a copy of this message | ||
Commit: 2e9d3e8b39c19ffba559b685f7ed96fee28cba59
Author: Dmitry Stogov <dmitry@zend.com> Mon, 10 Jun 2013 10:36:35 +0400
Parents: 8ae43caeeeacf3338d6f1218455b5aa4b9ef09f7
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2e9d3e8b39c19ffba559b685f7ed96fee28cba59
Log:
Use size_t instead of int
Changed paths:
M ext/opcache/zend_shared_alloc.c
Diff:
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index d752afe..cf4e0ff 100644
--- a/ext/opcache/zend_shared_alloc.c
+++ b/ext/opcache/zend_shared_alloc.c
@@ -99,9 +99,9 @@ void zend_shared_alloc_create_lock(void)
}
#endif
-static void no_memory_bailout(int allocate_size, char *error)
+static void no_memory_bailout(size_t allocate_size, char *error)
{
- zend_accel_error(ACCEL_LOG_FATAL, "Unable to allocate shared memory segment of %d bytes: %s:
%s (%d)", allocate_size, error?error:"unknown", strerror(errno), errno );
+ zend_accel_error(ACCEL_LOG_FATAL, "Unable to allocate shared memory segment of %ld bytes: %s:
%s (%d)", allocate_size, error?error:"unknown", strerror(errno), errno );
}
static void copy_shared_segments(void *to, void *from, int count, int size)