]> granicus.if.org Git - php/commitdiff
Use size_t instead of int
authorDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 06:36:35 +0000 (10:36 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 06:36:35 +0000 (10:36 +0400)
ext/opcache/zend_shared_alloc.c

index d752afea1c3b1b3c1c5720dbe3be6dff77f1ef6c..cf4e0ff0f7c844da4f79495008b942fa925ee567 100644 (file)
@@ -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)