Mercurial > projects > ddmd
comparison dmd/expression/Util.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | d237b38b5858 |
children | cd48cb899aee |
comparison
equal
deleted
inserted
replaced
173:d237b38b5858 | 174:af724d3510d7 |
---|---|
1829 real r = strtold(buffer.ptr, null); | 1829 real r = strtold(buffer.ptr, null); |
1830 //#endif | 1830 //#endif |
1831 if (r == value) // if exact duplication | 1831 if (r == value) // if exact duplication |
1832 buf.writestring(buffer); | 1832 buf.writestring(buffer); |
1833 else | 1833 else |
1834 buf.printf("%La", value); // ensure exact duplication | 1834 buf.printf("%s", value); // ensure exact duplication /// ! |
1835 | 1835 |
1836 if (type) | 1836 if (type) |
1837 { | 1837 { |
1838 Type t = type.toBasetype(); | 1838 Type t = type.toBasetype(); |
1839 switch (t.ty) | 1839 switch (t.ty) |