diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2000-03-24 01:51:13 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2000-03-24 01:51:13 +0000 |
commit | 74cc24b09659809f11be619b8a3ce62755be2667 (patch) | |
tree | c0b38eb348f4559bf57064962ae374ee09fa8c64 /gdb/gdbtypes.c | |
parent | bba2971c52ae57e209089c3f9bd5fd93990e1d8e (diff) | |
download | gdb-74cc24b09659809f11be619b8a3ce62755be2667.zip gdb-74cc24b09659809f11be619b8a3ce62755be2667.tar.gz gdb-74cc24b09659809f11be619b8a3ce62755be2667.tar.bz2 |
FIx regression
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index d361d15..a940931 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2136,8 +2136,8 @@ rank_function (parms, nparms, args, nargs) LENGTH_MATCH (bv) = (nargs != nparms) ? LENGTH_MISMATCH_BADNESS : 0; /* Now rank all the parameters of the candidate function */ - for (i = 1; i < min_len; i++) - bv->rank[i] = rank_one_type (parms[i], args[i]); + for (i = 1; i <= min_len; i++) + bv->rank[i] = rank_one_type (parms[i-1], args[i-1]); /* If more arguments than parameters, add dummy entries */ for (i = min_len + 1; i <= nargs; i++) |