diff 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
line wrap: on
line diff
--- a/tangotests/vararg3.d	Sun Jun 15 18:37:23 2008 +0200
+++ b/tangotests/vararg3.d	Sun Jun 15 18:52:27 2008 +0200
@@ -143,7 +143,12 @@
     else if (ti == typeid(double))
         printf("%f", *cast(double*)arg);
     else if (ti == typeid(real)) // FIXME: 80bit?
-        printf("%f", *cast(real*)arg);
+    {
+        version(LLVM_X86_FP80)
+            printf("%llf", *cast(real*)arg);
+        else
+            printf("%f", *cast(real*)arg);
+    }
 
     else if (ti == typeid(char))
         printf("%.*s", 1, arg);