int ret;
while (true)
{
+#ifndef _MSC_VER
va_list arg_ptr;
va_copy(arg_ptr, ap);
+#else
+ va_list arg_ptr = ap;
+#endif;
#ifdef WIN32
ret = _vsnprintf(p, limit, format, arg_ptr);
#else
int64 n_abs = (n > 0 ? n : -n);
int64 quotient = n_abs/COIN;
int64 remainder = n_abs%COIN;
- string str = strprintf("%"PRI64d".%08"PRI64d, quotient, remainder);
+ string str = strprintf("%"PRI64d".%06"PRI64d, quotient, remainder);
// Right-trim excess zeros before the decimal point:
int nTrim = 0;