X-Git-Url: https://git.mdrn.pl/pylucene.git/blobdiff_plain/a2e61f0c04805cfcb8706176758d1283c7e3a55c..aaeed5504b982cf3545252ab528713250aa33eed:/jcc/jcc/sources/functions.cpp diff --git a/jcc/jcc/sources/functions.cpp b/jcc/jcc/sources/functions.cpp index 6b207eb..4449767 100644 --- a/jcc/jcc/sources/functions.cpp +++ b/jcc/jcc/sources/functions.cpp @@ -592,6 +592,9 @@ int _parseArgs(PyObject **args, unsigned int count, char *types, ...) if (array) return -1; + if (pos != typeCount) + return -1; + pos = 0; for (unsigned int a = 0; a < count; a++, pos++) {