Skip to content

Commit

Permalink
Set input_indices arguments to METH_VARARGS
Browse files Browse the repository at this point in the history
It seems this function should be taking arguments. At least its usage
seems to and definition seem to indicate that. So set its argument
format to `METH_VARARGS`.
  • Loading branch information
jakirkham committed Jun 12, 2017
1 parent d93778d commit d8860c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/cmt/python/src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}
};

Expand Down

0 comments on commit d8860c8

Please sign in to comment.