Skip to content

Commit 98b4dab

Browse files
committed
fix: removed long type
1 parent b6917f0 commit 98b4dab

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/_igraph/graphobject.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13905,18 +13905,14 @@ PyObject *igraphmodule_Graph_random_walk(igraphmodule_GraphObject * self,
1390513905
PyObject *igraphmodule_Graph_community_fluid_communities(igraphmodule_GraphObject *self,
1390613906
PyObject *args, PyObject *kwds) {
1390713907
static char *kwlist[] = {"no_of_communities", NULL};
13908-
long no_of_communities_long;
13909-
igraph_integer_t no_of_communities;
13908+
Py_ssize_t no_of_communities;
1391013909
igraph_vector_int_t membership;
1391113910
PyObject *result;
1391213911

1391313912
// Parse the Python integer argument
13914-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "l", kwlist, &no_of_communities_long)) {
13913+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "n", kwlist, &no_of_communities)) {
1391513914
return NULL;
1391613915
}
13917-
13918-
// Convert to igraph_integer_t
13919-
no_of_communities = (igraph_integer_t) no_of_communities_long;
1392013916

1392113917
if (igraph_vector_int_init(&membership, 0)) {
1392213918
igraphmodule_handle_igraph_error();

0 commit comments

Comments
 (0)