mirror of
https://github.com/php/php-src.git
synced 2026-03-30 04:02:19 +02:00
add I64 support to spprintf() (snprintf() already has it)
This commit is contained in:
@@ -337,6 +337,16 @@ static void xbuf_format_converter(int unicode, smart_str *xbuf, const char *fmt,
|
||||
fmt++;
|
||||
modifier = LM_LONG_DOUBLE;
|
||||
break;
|
||||
case 'I':
|
||||
fmt++;
|
||||
#if SIZEOF_LONG_LONG
|
||||
if (*fmt == '6' && *(fmt+1) == '4') {
|
||||
fmt += 2;
|
||||
modifier = LM_LONG_LONG;
|
||||
} else
|
||||
#endif
|
||||
modifier = LM_LONG;
|
||||
break;
|
||||
case 'l':
|
||||
fmt++;
|
||||
#if SIZEOF_LONG_LONG
|
||||
|
||||
Reference in New Issue
Block a user