[project @ 1999-11-11 16:24:12 by sewardj]
authorsewardj <unknown>
Thu, 11 Nov 1999 16:24:12 +0000 (16:24 +0000)
committersewardj <unknown>
Thu, 11 Nov 1999 16:24:12 +0000 (16:24 +0000)
Print float/double literals correctly in error messages.

ghc/interpreter/output.c

index af88c66..648a32d 100644 (file)
@@ -10,8 +10,8 @@
  * included in the distribution.
  *
  * $RCSfile: output.c,v $
- * $Revision: 1.10 $
- * $Date: 1999/11/09 00:41:19 $
+ * $Revision: 1.11 $
+ * $Date: 1999/11/11 16:24:12 $
  * ------------------------------------------------------------------------*/
 
 #include "prelude.h"
@@ -206,7 +206,7 @@ Cell e; {
 
         case FLOATCELL  : {   Float f = floatOf(e);
                               if (f<0 && d>=UMINUS_PREC) putChr('(');
-                              putStr(floatToString(f));
+                              putStr(floatToString(e));
                               if (f<0 && d>=UMINUS_PREC) putChr(')');
                           }
                           break;