Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1015: tango-stdarg.patch

File tango-stdarg.patch, 1.1 kB (added by afb, 6 months ago)

tango-stdarg.patch

  • tango/text/convert/Layout.d

    old new  
    4040*******************************************************************************/ 
    4141 
    4242version (X86_64) 
     43  version = STDARG; 
     44version (darwin) 
     45  version = STDARG; 
     46 
     47version (STDARG) 
    4348        { 
    4449        private import std.stdarg; 
    4550        alias void* Arg; 
     
    181186                assert (formatStr, "null format specifier"); 
    182187                assert (arguments.length < 64, "too many args in Layout.convert"); 
    183188 
    184         version (X86_64
     189        version (STDARG
    185190                { 
    186191                Arg[64] arglist = void; 
    187192                int[64] intargs = void; 
     
    195200 
    196201                foreach (i, arg; arguments) 
    197202                        { 
    198                         arglist[i] = args.ptr
     203                        arglist[i] = args
    199204                        /* Since floating point types don't live on 
    200205                         * the stack, they must be accessed by the 
    201206                         * correct type. */