mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
- Use conversion macro
This commit is contained in:
parent
4385fe240e
commit
bc1b8f0ab1
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user