From: Dmitry Stogov Date: Fri, 29 Apr 2016 10:43:43 +0000 (+0300) Subject: Fixed "comparison between signed and unsigned integer expressions" compilation warnings X-Git-Tag: php-7.1.0alpha1~237^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84bf7ae59b995614b8503b2492a533bf92ffbec3;p=php Fixed "comparison between signed and unsigned integer expressions" compilation warnings --- diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h index 0b51db6743..319da96f15 100644 --- a/Zend/zend_object_handlers.h +++ b/Zend/zend_object_handlers.h @@ -27,8 +27,8 @@ struct _zend_property_info; #define ZEND_WRONG_PROPERTY_INFO \ ((struct _zend_property_info*)((zend_intptr_t)-1)) -#define ZEND_DYNAMIC_PROPERTY_OFFSET (-1) -#define ZEND_WRONG_PROPERTY_OFFSET (-2) +#define ZEND_DYNAMIC_PROPERTY_OFFSET ((uint32_t)(-1)) +#define ZEND_WRONG_PROPERTY_OFFSET ((uint32_t)(-2)) /* The following rule applies to read_property() and read_dimension() implementations: If you return a zval which is not otherwise referenced by the extension or the engine's