diff options
author | Antony Dovgal <tony2001@php.net> | 2007-08-03 14:31:28 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-08-03 14:31:28 +0000 |
commit | 515aaeda108b11efbf8fb3c0c9d8d94ed0022d2c (patch) | |
tree | bda70be30f45b213ce280faace5add1bf516f7bd /main/snprintf.c | |
parent | a847d2c6fe9ce083753882f4fd8c7097584b811a (diff) | |
download | php-git-515aaeda108b11efbf8fb3c0c9d8d94ed0022d2c.tar.gz |
'I32' and 'I' support
Diffstat (limited to 'main/snprintf.c')
-rw-r--r-- | main/snprintf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index 861242d193..853a078885 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -716,7 +716,16 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) / modifier = LM_LONG_LONG; } else #endif - modifier = LM_LONG; + if (*fmt == '3' && *(fmt+1) == '2') { + fmt += 2; + modifier = LM_LONG; + } else { +#ifdef _WIN64 + modifier = LM_LONG_LONG; +#else + modifier = LM_LONG; +#endif + } break; case 'l': fmt++; |