]> granicus.if.org Git - php/commitdiff
Fixed "comparison between signed and unsigned integer expressions" compilation warnings
authorDmitry Stogov <dmitry@zend.com>
Fri, 29 Apr 2016 10:43:43 +0000 (13:43 +0300)
committerDmitry Stogov <dmitry@zend.com>
Fri, 29 Apr 2016 10:43:43 +0000 (13:43 +0300)
Zend/zend_object_handlers.h

index 0b51db6743bb687ea01827a43c1a4772241094fa..319da96f1507ac984e8fa6f18a92f43a9901abd0 100644 (file)
@@ -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