diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-06-30 04:05:24 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-06-30 04:05:24 +0300 |
commit | 4a2e40bb861bc3cf5fb6863e57486ed60316e97c (patch) | |
tree | 6579660b282fdd1bc50095e48d702913a0b6aa97 /ext/bcmath/libbcmath/src/num2str.c | |
parent | 8cce5b2641fb91c3073018b59f6f044b843041a8 (diff) | |
download | php-git-4a2e40bb861bc3cf5fb6863e57486ed60316e97c.tar.gz |
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
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; } |