# HG changeset patch # User Paul Boddie # Date 1480290793 -3600 # Node ID b22e901e12d6656632525814d76116acf3ee02e2 # Parent d81ea7b97af1703099535b10275c6628d9c1ae9c Fixed default parameter filling, using the minimum number of arguments as the base of the default positions, not the actual number of arguments provided. diff -r d81ea7b97af1 -r b22e901e12d6 templates/progops.c --- a/templates/progops.c Mon Nov 28 00:24:53 2016 +0100 +++ b/templates/progops.c Mon Nov 28 00:53:13 2016 +0100 @@ -130,7 +130,7 @@ for (pos = nargs; pos < max; pos++) { if (allargs[pos].value == 0) - allargs[pos] = __GETDEFAULT(callable.value, pos - nargs); + allargs[pos] = __GETDEFAULT(callable.value, pos - min); } /* Call with the prepared arguments. */