]> granicus.if.org Git - php/commitdiff
- Add propper casting
authorMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 12:14:47 +0000 (12:14 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 12:14:47 +0000 (12:14 +0000)
Zend/zend_API.h

index 5720878166be3b772c10bd8f7e21ab3c6f6a0ef3..23e0951646d2fc5f4aafb91e8ea68197646cb01d 100644 (file)
@@ -790,18 +790,18 @@ END_EXTERN_C()
 #define ZVAL_TEXT(z, t, duplicate)                                     \
                do {                                                                            \
                        if (UG(unicode)) {                                              \
-                               ZVAL_UNICODE(z, (UChar*)t, duplicate);          \
+                               ZVAL_UNICODE(z, (UChar*)(t), duplicate);                \
                        } else {                                                                \
-                               ZVAL_STRING(z, t, duplicate);           \
+                               ZVAL_STRING(z, (char*)(t), duplicate);          \
                        }                                                                               \
                } while (0);
 
 #define ZVAL_TEXTL(z, t, l, duplicate)                         \
                do {                                                                            \
                        if (UG(unicode)) {                                              \
-                               ZVAL_UNICODEL(z, t, l, duplicate);      \
+                               ZVAL_UNICODEL(z, (UChar*)(t), l, duplicate);    \
                        } else {                                                                \
-                               ZVAL_STRINGL(z, t, l, duplicate);       \
+                               ZVAL_STRINGL(z, (char*)(t), l, duplicate);      \
                        }                                                                               \
                } while (0);