diff --git a/core_pe/modules/block.c b/core_pe/modules/block.c index 9c5941f6..82930424 100644 --- a/core_pe/modules/block.c +++ b/core_pe/modules/block.c @@ -32,16 +32,18 @@ min(int a, int b) /* Create a tuple out of an array of integers. */ static PyObject* -inttuple(int numbers[], int count) +inttuple(int n, ...) { int i; PyObject *pnumber; PyObject *result; + va_list numbers; - result = PyTuple_New(count); + va_start(numbers, n); + result = PyTuple_New(n); - for (i=0; i