From: Antony Dovgal Date: Fri, 3 Aug 2007 09:48:58 +0000 (+0000) Subject: MFH: add I64 support to spprintf() X-Git-Tag: php-5.2.4RC2~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57daf22d8fef6a5af3048509db101048ddeffbe7;p=php MFH: add I64 support to spprintf() --- diff --git a/main/spprintf.c b/main/spprintf.c index 88e87f1dcd..2bc3cb96fd 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -302,6 +302,16 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) 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