2005-01-27 LLuis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Thu, 27 Jan 2005 22:08:11 +0000 (22:08 -0000)
committerLluis Sanchez <lluis@novell.com>
Thu, 27 Jan 2005 22:08:11 +0000 (22:08 -0000)
* CodeGenerator.cs: Write 'f' suffix for float constants.

svn path=/trunk/mcs/; revision=39666

mcs/class/System/System.CodeDom.Compiler/ChangeLog
mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs

index f85d56a27afcad637571efab7bf6cbe6dc8cbb83..6be3d1a4a96707835164b44d42c2d3425e9e3b53 100755 (executable)
@@ -1,3 +1,7 @@
+2005-01-27  LLuis Sanchez Gual  <lluis@novell.com>
+
+       * CodeGenerator.cs: Write 'f' suffix for float constants.
+
 2004-09-06  Marek Safar  <marek.safar@seznam.cz>
 
        * CodeGenerator.cs,
index 416a0cc46c99116f14982865cda5cee471945d3f..155d5c6e2d2ea36497c30249611c3196f4f808ed 100755 (executable)
@@ -481,6 +481,9 @@ namespace System.CodeDom.Compiler {
                                        output.Write (formattable.ToString (null, CultureInfo.InvariantCulture));
                                else
                                        output.Write (e.Value.ToString ());
+                                       
+                               if (type == typeof (float))
+                                       output.Write ("f");
                        } else {
                                throw new ArgumentException ("Value type (" + type + ") is not a primitive type");
                        }