com php-src: fix repeated compiler warnings: Zend/zend_execut e.h
| From: | Anatol Belski | Date: | Sat, 07 Dec 2013 07:57:02 +0000 |
| Subject: | com php-src: fix repeated compiler warnings: Zend/zend_execut e.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74302@lists.php.net to get a copy of this message | ||
Commit: 31a4d08d37e744789f1718b890cbb0a9f1b9728d
Author: Anatol Belski <ab@php.net> Sat, 7 Dec 2013 08:57:02 +0100
Parents: 20217b04b4517702f57b4c2621ab1235d774fa72
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=31a4d08d37e744789f1718b890cbb0a9f1b9728d
Log:
fix repeated compiler warnings
Changed paths:
M Zend/zend_execute.h
Diff:
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index be6e1be..9811096 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -135,7 +135,7 @@ static zend_always_inline int i_zend_is_true(zval *op)
if (Z_OBJ_HT_P(op)->cast_object) {
zval tmp;
if (Z_OBJ_HT_P(op)->cast_object(op, &tmp, IS_BOOL TSRMLS_CC) == SUCCESS) {
- result = Z_LVAL(tmp);
+ result = (int)Z_LVAL(tmp);
break;
}
} else if (Z_OBJ_HT_P(op)->get) {
@@ -143,7 +143,7 @@ static zend_always_inline int i_zend_is_true(zval *op)
if(Z_TYPE_P(tmp) != IS_OBJECT) {
/* for safety - avoid loop */
convert_to_boolean(tmp);
- result = Z_LVAL_P(tmp);
+ result = (int)Z_LVAL_P(tmp);
zval_ptr_dtor(&tmp);
break;
}
@@ -183,7 +183,7 @@ struct _zend_vm_stack {
} \
} while (0)
-static zend_always_inline zend_vm_stack zend_vm_stack_new_page(int count) {
+static zend_always_inline zend_vm_stack zend_vm_stack_new_page(size_t count) {
zend_vm_stack page = (zend_vm_stack)emalloc(ZEND_MM_ALIGNED_SIZE(sizeof(*page)) + sizeof(void*) *
count);
page->top = ZEND_VM_STACK_ELEMETS(page);