]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Use locale-independent formatting in CodeNode.set_attribute_double
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 11 Aug 2011 19:47:15 +0000 (21:47 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 11 Aug 2011 19:47:15 +0000 (21:47 +0200)
vala/valacodenode.vala

index c3d642906dec37b849c79470d0bb3909a29b9911..3872a46792777320e163e9c1d09c70f5d8a52740 100644 (file)
@@ -315,7 +315,7 @@ public abstract class Vala.CodeNode {
                        a = new Attribute (attribute, source_reference);
                        attributes.append (a);
                }
-               a.add_argument (argument, "%g".printf (value));
+               a.add_argument (argument, value.format (new char[double.DTOSTR_BUF_SIZE]));
        }
 
        /**