Browse Source

add I64 support to spprintf() (snprintf() already has it)

PHAR_1_2
Antony Dovgal 19 years ago
parent
commit
996f1baaab
  1. 10
      main/spprintf.c

10
main/spprintf.c

@ -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

Loading…
Cancel
Save