File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ static PyObject* Rules_match(
13371337 char * filepath = NULL ;
13381338 char * data = NULL ;
13391339
1340- int pid = 0 ;
1340+ unsigned int pid = UINT_MAX ;
13411341 int timeout = 0 ;
13421342 int length ;
13431343 int error = ERROR_SUCCESS ;
@@ -1358,7 +1358,7 @@ static PyObject* Rules_match(
13581358 if (PyArg_ParseTupleAndKeywords (
13591359 args ,
13601360 keywords ,
1361- "|sis #OOOiOO" ,
1361+ "|sIs #OOOiOO" ,
13621362 kwlist ,
13631363 & filepath ,
13641364 & pid ,
@@ -1371,7 +1371,7 @@ static PyObject* Rules_match(
13711371 & callback_data .modules_data ,
13721372 & callback_data .modules_callback ))
13731373 {
1374- if (filepath == NULL && data == NULL && pid == 0 )
1374+ if (filepath == NULL && data == NULL && pid == UINT_MAX )
13751375 {
13761376 return PyErr_Format (
13771377 PyExc_TypeError ,
@@ -1465,7 +1465,7 @@ static PyObject* Rules_match(
14651465
14661466 Py_END_ALLOW_THREADS
14671467 }
1468- else if (pid != 0 )
1468+ else if (pid != UINT_MAX )
14691469 {
14701470 callback_data .matches = PyList_New (0 );
14711471
You can’t perform that action at this time.
0 commit comments