mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
Make header C++ compatible
This commit is contained in:
parent
31e842472f
commit
0cd982f15c
@ -66,7 +66,7 @@ static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zen
|
|||||||
newlen = str->s->len + len;
|
newlen = str->s->len + len;
|
||||||
if (newlen >= str->a) {
|
if (newlen >= str->a) {
|
||||||
str->a = newlen + SMART_STR_PREALLOC;
|
str->a = newlen + SMART_STR_PREALLOC;
|
||||||
str->s = perealloc(str->s, _STR_HEADER_SIZE + str->a + 1, persistent);
|
str->s = (zend_string *) perealloc(str->s, _STR_HEADER_SIZE + str->a + 1, persistent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return newlen;
|
return newlen;
|
||||||
|
Loading…
Reference in New Issue
Block a user