fix Issue 10644 - Win64: wrong code when passing arguments through ...

This commit is contained in:
Walter Bright 2013-07-19 14:17:32 -07:00
parent 33913dbc54
commit e16b2c81e5
2 changed files with 2 additions and 8 deletions

View file

@ -310,10 +310,7 @@ class OutBuffer
{
version (Win64)
{
va_list ap;
ap = cast(va_list)&format;
ap += format.sizeof;
vprintf(format, ap);
vprintf(format, _argptr);
}
else version (X86_64)
{

View file

@ -1164,10 +1164,7 @@ class Stream : InputStream, OutputStream {
// returns number of bytes written
version (Win64)
size_t printf(const(char)[] format, ...) {
va_list ap;
ap = cast(va_list) &format;
ap += format.sizeof;
return vprintf(format, ap);
return vprintf(format, _argptr);
}
else version (X86_64)
size_t printf(const(char)[] format, ...) {