[vala] girparser: Fix parameter index calculation



commit 3226586fb5c30c37eac82ac264e075fcb3e53417
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jun 29 21:01:18 2010 +0200

    girparser: Fix parameter index calculation

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index b545b2d..4d051a3 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -968,7 +968,7 @@ public class Vala.GirParser : CodeVisitor {
 				for (int k=last+1; k < i; k++) {
 					parameters[k].vala_idx =  last_idx + (((j - last_idx) / (i-last)) * (k-last));
 				}
-				last = i+1;
+				last = i;
 				j++;
 			} else {
 				info.keep = false;



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