Skip to content

Commit

Permalink
Fix typing error in the module declaration source
Browse files Browse the repository at this point in the history
Fixes two variable names false typed, causing error to workflow (Workflow: Python Package, Run #8, Commit: fbc3177).
  • Loading branch information
RossAdrian committed Jul 24, 2024
1 parent fbc3177 commit 3351329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/module_pyfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
static PyObject* pyfunc_pyfb_open(PyObject* self, PyObject* args) {
unsigned char fbnum_c = 0;
if(!PyArg_ParseTuple(args, "b", &fbnum)) {
if(!PyArg_ParseTuple(args, "b", &fbnum_c)) {
PyErr_SetString(PyExc_TypeError, "Expecting arguments of type byte");
return NULL;
}
Expand All @@ -36,7 +36,7 @@ static PyObject* pyfunc_pyfb_open(PyObject* self, PyObject* args) {
*/
static PyObject* pyfunc_pyfb_close(PyObject* self, PyObject* args) {
unsigned char fbnum_c = 0;
if(!PyArg_ParseTuple(args, "b", &fbnum)) {
if(!PyArg_ParseTuple(args, "b", &fbnum_c)) {
PyErr_SetString(PyExc_TypeError, "Expecting arguments of type byte");
return NULL;
}
Expand Down

0 comments on commit 3351329

Please sign in to comment.