[vala] Fix instance_pos attribute writing in VAPI files



commit 98c73b18153f8732fe157ff3a2a48d56d1c15b3a
Author: Jürg Billeter <j bitron ch>
Date:   Sat Mar 13 23:10:24 2010 +0100

    Fix instance_pos attribute writing in VAPI files
    
    Fixes bug 609088.

 vala/valacodewriter.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 133dbb1..0a10126 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -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));
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]