diff options
| author | Nikita Popov <nikic@php.net> | 2014-09-19 23:22:26 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2014-09-19 23:39:07 +0200 |
| commit | 31e842472f46d8aa32e2ef316da245f18806589d (patch) | |
| tree | e87882472345b757f3b898c441dc9e80e0d4364a /Zend/zend_operators.c | |
| parent | ad3e1830bafdcbf366f611c8778c5409bd4472d2 (diff) | |
| download | php-git-31e842472f46d8aa32e2ef316da245f18806589d.tar.gz | |
Make number printing functions less generic
Now that zend_ulong is 64bit on 64bit platforms, it should be
sufficient to always use it, rather than supporting multiple
types.
API changes:
* _zend_print_unsigned_to_buf and _zend_print_signed_to_buf
no longer exist.
* smart_str(ing)_print_long and smart_str(ing)_print_unsigned
no longer exist.
* Instead of all these, zend_print_ulong_to_buf and
zend_print_long_to_buf should be used.
* smart_str_append_generic_ex no longer exists.
* smart_str(ing)_append_off_t(_ex) no longer exists, use
smart_str(ing)_append_long(_ex) instead.
Diffstat (limited to 'Zend/zend_operators.c')
| -rw-r--r-- | Zend/zend_operators.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index a63b1757e2..8047aa6019 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2520,8 +2520,7 @@ ZEND_API void zend_locale_sprintf_double(zval *op ZEND_FILE_LINE_DC) /* {{{ */ ZEND_API zend_string *zend_long_to_str(zend_long num) /* {{{ */ { char buf[MAX_LENGTH_OF_LONG + 1]; - char *res; - _zend_print_signed_to_buf(buf + sizeof(buf) - 1, num, zend_ulong, res); + char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, num); return zend_string_init(res, buf + sizeof(buf) - 1 - res, 0); } /* }}} */ |
