fix bug with missing default for last arg (discovered by Tommy Burnette)

This commit is contained in:
Guido van Rossum 1995-09-18 21:44:04 +00:00
parent befa14f1b9
commit a1e7e62893
1 changed files with 3 additions and 2 deletions

View File

@ -2139,7 +2139,8 @@ com_argdefs(c, n)
nargs++;
i++;
if (i >= nch)
break;
t = RPAR; /* Anything except EQUAL or COMMA */
else
t = TYPE(CHILD(n, i));
if (t == EQUAL) {
i++;