Skip to content

Commit 6208387

Browse files
committed
Fix c-extension unboxing
1 parent 8358530 commit 6208387

File tree

1 file changed

+1
-1
lines changed
  • examples/c_extension_example/src

1 file changed

+1
-1
lines changed

examples/c_extension_example/src/lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fib(PyObject *self, PyObject *args)
1414
{
1515
// "unbox" input argument called "limit" to convert it from a Python variable to a C int
1616
int limit;
17-
if (!PyArg_ParseTuple(args, "limit", &limit))
17+
if (!PyArg_ParseTuple(args, "i", &limit))
1818
{
1919
return NULL; // signal an error
2020
}

0 commit comments

Comments
 (0)