From: Antony Dovgal Date: Thu, 12 Apr 2007 22:00:56 +0000 (+0000) Subject: add support for %I64(u|d) to sprintf() utilities X-Git-Tag: RELEASE_1_2_0~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c94da398b9ec4f64057fd27ccfc5058803a300b8;p=php add support for %I64(u|d) to sprintf() utilities --- diff --git a/main/snprintf.c b/main/snprintf.c index 2aba6c1d0a..8b157bd4cb 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -706,6 +706,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