diff options
Diffstat (limited to 'ext/bcmath/libbcmath/src/num2str.c')
-rw-r--r-- | ext/bcmath/libbcmath/src/num2str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bcmath/libbcmath/src/num2str.c b/ext/bcmath/libbcmath/src/num2str.c index 5f3911e47c..c72a924933 100644 --- a/ext/bcmath/libbcmath/src/num2str.c +++ b/ext/bcmath/libbcmath/src/num2str.c @@ -58,7 +58,7 @@ zend_string if (str == NULL) bc_out_of_memory(); /* The negative sign if needed. */ - sptr = str->val; + sptr = ZSTR_VAL(str); if (signch) *sptr++ = '-'; /* Load the whole number. */ @@ -76,6 +76,6 @@ zend_string /* Terminate the string and return it! */ *sptr = '\0'; - str->len = sptr - (char *)str->val; + ZSTR_LEN(str) = sptr - (char *)ZSTR_VAL(str); return str; } |