From 60a21521e7c73686daa3e3a746fcc59ba437a90a Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Sun, 11 Jun 2017 21:36:24 -0400 Subject: [PATCH] Set input_indices arguments to METH_VARARGS It seems this function should be taking arguments. At least its usage seems to indicate that. So set its argument format to `METH_VARARGS`. --- code/cmt/python/src/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cmt/python/src/module.cpp b/code/cmt/python/src/module.cpp index a76e28c..f43b728 100644 --- a/code/cmt/python/src/module.cpp +++ b/code/cmt/python/src/module.cpp @@ -765,7 +765,7 @@ static PyMethodDef PatchModel_methods[] = { {"loglikelihood", (PyCFunction)PatchModel_loglikelihood, METH_VARARGS | METH_KEYWORDS, 0}, {"input_mask", (PyCFunction)PatchModel_input_mask, METH_VARARGS, 0}, {"output_mask", (PyCFunction)PatchModel_output_mask, METH_VARARGS, 0}, - {"input_indices", (PyCFunction)PatchModel_input_indices, 0, 0}, + {"input_indices", (PyCFunction)PatchModel_input_indices, METH_VARARGS, 0}, {0} };