mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +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)
|
version (Win64)
|
||||||
{
|
{
|
||||||
va_list ap;
|
vprintf(format, _argptr);
|
||||||
ap = cast(va_list)&format;
|
|
||||||
ap += format.sizeof;
|
|
||||||
vprintf(format, ap);
|
|
||||||
}
|
}
|
||||||
else version (X86_64)
|
else version (X86_64)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1164,10 +1164,7 @@ class Stream : InputStream, OutputStream {
|
||||||
// returns number of bytes written
|
// returns number of bytes written
|
||||||
version (Win64)
|
version (Win64)
|
||||||
size_t printf(const(char)[] format, ...) {
|
size_t printf(const(char)[] format, ...) {
|
||||||
va_list ap;
|
return vprintf(format, _argptr);
|
||||||
ap = cast(va_list) &format;
|
|
||||||
ap += format.sizeof;
|
|
||||||
return vprintf(format, ap);
|
|
||||||
}
|
}
|
||||||
else version (X86_64)
|
else version (X86_64)
|
||||||
size_t printf(const(char)[] format, ...) {
|
size_t printf(const(char)[] format, ...) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue