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

Changeset 3420

Show
Ignore:
Timestamp:
04/08/08 12:34:05 (5 months ago)
Author:
larsivi
Message:

Make X86_64 formatting hack apply to all platforms when using GDC. Man, GDC sucks. closes #1015

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/convert/Layout.d

    r3398 r3420  
    4040*******************************************************************************/ 
    4141 
    42 version (X86_64
     42version (GNU
    4343        { 
    4444        private import std.stdarg; 
     
    182182                assert (arguments.length < 64, "too many args in Layout.convert"); 
    183183 
    184         version (X86_64
     184        version (GNU
    185185                { 
    186186                Arg[64] arglist = void; 
     
    196196                foreach (i, arg; arguments) 
    197197                        { 
    198                         arglist[i] = args.ptr
     198                        arglist[i] = args
    199199                        /* Since floating point types don't live on 
    200200                         * the stack, they must be accessed by the 
     
    855855        assert( Formatter( "->{0,10}<-", 12345 ) == "->     12345<-" ); 
    856856 
    857         //assert( Formatter( "{0:f}", 1.23f ) == "1.23" ); 
     857        assert( Formatter( "{0:f}", 1.23f ) == "1.23" ); 
    858858        assert( Formatter( "{0:f4}", 1.23456789L ) == "1.2346" ); 
    859859        assert( Formatter( "{0:e4}", 0.0001) == "0.1000e-03");