comparison tangotests/vararg3.d @ 268:23d0d9855cad trunk

[svn r289] Fixed: right shift >> was broken for unsigned types. Fixed: debug info for classes now started.
author lindquist
date Sun, 15 Jun 2008 18:52:27 +0200
parents a9dae3da4e87
children
comparison
equal deleted inserted replaced
267:c43911baea21 268:23d0d9855cad
141 else if (ti == typeid(float)) 141 else if (ti == typeid(float))
142 printf("%f", *cast(float*)arg); 142 printf("%f", *cast(float*)arg);
143 else if (ti == typeid(double)) 143 else if (ti == typeid(double))
144 printf("%f", *cast(double*)arg); 144 printf("%f", *cast(double*)arg);
145 else if (ti == typeid(real)) // FIXME: 80bit? 145 else if (ti == typeid(real)) // FIXME: 80bit?
146 printf("%f", *cast(real*)arg); 146 {
147 version(LLVM_X86_FP80)
148 printf("%llf", *cast(real*)arg);
149 else
150 printf("%f", *cast(real*)arg);
151 }
147 152
148 else if (ti == typeid(char)) 153 else if (ti == typeid(char))
149 printf("%.*s", 1, arg); 154 printf("%.*s", 1, arg);
150 else if (ti == typeid(wchar)) 155 else if (ti == typeid(wchar))
151 printf("%.*s", 2, arg); 156 printf("%.*s", 2, arg);