Make header C++ compatible

This commit is contained in:
Nikita Popov 2014-09-19 23:54:58 +02:00
parent 31e842472f
commit 0cd982f15c

View File

@ -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;