]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix instance_pos attribute writing in VAPI files
authorJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 22:10:24 +0000 (23:10 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 22:11:14 +0000 (23:11 +0100)
Fixes bug 609088.

vala/valacodewriter.vala

index 133dbb1e7b8ed79d7275a738cd21ff0c0a16855a..0a10126373db2046f3523665f0838c843ee968d3 100644 (file)
@@ -1,6 +1,6 @@
 /* valacodewriter.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  * Copyright (C) 2006-2008  Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
@@ -822,7 +822,7 @@ public class Vala.CodeWriter : CodeVisitor {
 
                if (!cb.has_target) {
                        write_string (", has_target = false");
-               } else if (!float_equal (cb.cinstance_parameter_position, 0)) {
+               } else if (!float_equal (cb.cinstance_parameter_position, -2)) {
                        write_string (", instance_pos = %g".printf (cb.cinstance_parameter_position));
                }