Skip to content

Commit

Permalink
fix: make sure that igraphmodule_PyObject_to_edge_type_sw_t() respect…
Browse files Browse the repository at this point in the history
…s the default value passed in
  • Loading branch information
ntamas committed Oct 14, 2021
1 parent be01f01 commit 78adc9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_igraph/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -3143,7 +3143,8 @@ int igraphmodule_PyObject_to_pagerank_algo_t(PyObject *o, igraph_pagerank_algo_t
* \brief Converts a Python object to an igraph \c igraph_edge_type_sw_t
*/
int igraphmodule_PyObject_to_edge_type_sw_t(PyObject *o, igraph_edge_type_sw_t *result) {
int result_int, retval;
int result_int = *result;
int retval;
static igraphmodule_enum_translation_table_entry_t edge_type_sw_tt[] = {
{"simple", IGRAPH_SIMPLE_SW},
{"loops", IGRAPH_LOOPS_SW},
Expand Down

0 comments on commit 78adc9e

Please sign in to comment.