]> granicus.if.org Git - php/commitdiff
- Use conversion macro
authorMarcus Boerger <helly@php.net>
Fri, 22 Dec 2006 00:28:20 +0000 (00:28 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 22 Dec 2006 00:28:20 +0000 (00:28 +0000)
Zend/zend_alloc.c

index 6507a393d99c181171376543fc76c82e2f5dc379..f5548d3f9f80e784eb69ed3c617b631e7495ea9c 100644 (file)
@@ -2036,9 +2036,9 @@ ZEND_API UChar *zend_ustrndup(const UChar *s, uint length)
 ZEND_API zstr zend_zstrndup(int type, const zstr s, uint length)
 {
        if (type == IS_STRING) {
-               return (zstr)zend_strndup(s.s, length);
+               return ZSTR(zend_strndup(s.s, length));
        } else {
-               return (zstr)zend_ustrndup(s.u, length);
+               return ZSTR(zend_ustrndup(s.u, length));
        }
 }