Skip to content

Commit

Permalink
Fixing argument parsing
Browse files Browse the repository at this point in the history
Thanks to Eric Vin for catching this one
  • Loading branch information
msoos committed Oct 3, 2022
1 parent 3124483 commit 454aef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/pyapproxmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void setup_counter(Counter *self, PyObject *args, PyObject *kwds)
self->epsilon = 0.8;
self->delta = 0.2;

if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iIddO", const_cast<char**>(kwlist),
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iIdd", const_cast<char**>(kwlist),
&self->verbosity, &self->seed, &self->epsilon, &self->delta))
{
return;
Expand Down

0 comments on commit 454aef2

Please sign in to comment.