[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdev-python=5D_duchain=3A_fixed_offset_error_with_a?=
From:       Sven Brauch <svenbrauch () googlemail ! com>
Date:       2011-06-30 20:06:59
Message-ID: 20110630200659.71A1DA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit cb16ab5d6a4c982e03a37417eec8ede343794e8b by Sven Brauch.
Committed on 30/06/2011 at 22:09.
Pushed by brauch into branch 'master'.

fixed offset error with argument type updating

it wouldn't update the last argument due to off-by-one confusion

M  +1    -1    duchain/declarationbuilder.cpp     

http://commits.kde.org/kdev-python/cb16ab5d6a4c982e03a37417eec8ede343794e8b

diff --git a/duchain/declarationbuilder.cpp b/duchain/declarationbuilder.cpp
index 76a1e02..f03a780 100644
--- a/duchain/declarationbuilder.cpp
+++ b/duchain/declarationbuilder.cpp
@@ -457,7 +457,7 @@ void DeclarationBuilder::visitCall(CallAst* node)
                 {
                     kDebug() << "... and they match the parameter size";
                     foreach ( ExpressionAst* arg, node->arguments ) {
-                        if ( atParam >= functiontype->arguments().size() - 1 || \
atParam >= parameters.size() - 1 ) { +                        if ( atParam >= \
functiontype->arguments().size() || atParam >= parameters.size() ) {  break;
                         }
                         v.visitNode(arg);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic