From: Marcus Boerger Date: Fri, 22 Dec 2006 00:28:20 +0000 (+0000) Subject: - Use conversion macro X-Git-Tag: RELEASE_1_0_0RC1~558 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc1b8f0ab12f2fe214aaf5865a33f84db4a2c80d;p=php - Use conversion macro --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 6507a393d9..f5548d3f9f 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -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)); } }