mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
fix Issue 10644 - Win64: wrong code when passing arguments through ...
This commit is contained in:
parent
33913dbc54
commit
e16b2c81e5
2 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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, ...) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue