pylucene 3.5.0-3
[pylucene.git] / jcc / jcc / sources / functions.cpp
index 6b207eb..4449767 100644 (file)
@@ -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++) {