]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Fix parameter index calculation
authorJürg Billeter <j@bitron.ch>
Tue, 29 Jun 2010 19:01:18 +0000 (21:01 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 29 Jun 2010 19:22:49 +0000 (21:22 +0200)
vala/valagirparser.vala

index b545b2d46c3ae74d3cf5664895ba02119c09514f..4d051a320cf231c2482c7d90944d10ad509f5bdd 100644 (file)
@@ -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;