diff --git a/src/bindings/python/pycsp.c b/src/bindings/python/pycsp.c index 402e8cac1..8fbc72ad2 100644 --- a/src/bindings/python/pycsp.c +++ b/src/bindings/python/pycsp.c @@ -854,8 +854,8 @@ static PyObject * pycsp_can_socketcan_init(PyObject * self, PyObject * args) { char * ifc; int bitrate = 1000000; int promisc = 0; - int addr = 0; - if (!PyArg_ParseTuple(args, "s|iii", &ifc, &addr, &bitrate, &promisc)) { + int16_t addr = 0; + if (!PyArg_ParseTuple(args, "s|hii", &ifc, &addr, &bitrate, &promisc)) { return NULL; }