From: Antony Dovgal Date: Thu, 12 Apr 2007 22:01:20 +0000 (+0000) Subject: MFH: add support for %I64(u|d) to sprintf() utilities X-Git-Tag: php-5.2.2RC2~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73aa3517412e2a921d040f9016a1d5aebc505032;p=php MFH: add support for %I64(u|d) to sprintf() utilities --- diff --git a/main/snprintf.c b/main/snprintf.c index 6543285132..854e62b64c 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -708,6 +708,16 @@ static int format_converter(register buffy * odp, 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