]> granicus.if.org Git - php/commitdiff
Fix compile warning (bug #32047)
authorfoobar <sniper@php.net>
Sun, 6 Mar 2005 15:55:41 +0000 (15:55 +0000)
committerfoobar <sniper@php.net>
Sun, 6 Mar 2005 15:55:41 +0000 (15:55 +0000)
Zend/zend_mm.c

index 71a24c11eaa0d148d235cd51b7c6e0c766625064..a04c7190e69ba87d0cd2460d3ae08e6cb544313a 100644 (file)
@@ -319,12 +319,12 @@ zend_mm_finished_searching_for_block:
                if (true_size > (heap->block_size - ZEND_MM_ALIGNED_SEGMENT_SIZE - ZEND_MM_ALIGNED_HEADER_SIZE)) {
                        /* Make sure we add a memory block which is big enough */
                        if (zend_mm_add_memory_block(heap, true_size + ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) {
-                               zend_error(E_ERROR, "Out of memory: cannot allocate %d bytes!", true_size);
+                               zend_error(E_ERROR, "Out of memory: cannot allocate %zd bytes!", true_size);
                                return NULL;
                        }
                } else {
                        if (zend_mm_add_memory_block(heap, heap->block_size)) {
-                               zend_error(E_ERROR, "Out of memory: cannot allocate %d bytes!", heap->block_size);
+                               zend_error(E_ERROR, "Out of memory: cannot allocate %zd bytes!", heap->block_size);
                                return NULL;
                        }
                }