From bc1b8f0ab12f2fe214aaf5865a33f84db4a2c80d Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 22 Dec 2006 00:28:20 +0000 Subject: [PATCH] - Use conversion macro --- Zend/zend_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 6507a393d99..f5548d3f9f8 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)); } }