Inconsistent typing of variable dirmode
Bug #1054397 reported by
Michael Tautschnig
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Released
|
High
|
Tamás Nepusz |
Bug Description
Hi,
While compiling your package using our research compiler infrastructure it became apparent that the variable "dirmode" in structural_
As igraph_integer_t is a typedef name for double, the conversion to and from an enum may have surprising results.
Best,
Michael
Changed in igraph: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks - I cannot imagine how this could have slipped through the cracks such a long time ago (the functions involved have been added to igraph pretty early). I will fix this ASAP.
Note that several other functions are also affected in structural_ properties. c (search for "dirmode" to find the remaining occurrences), but this is not a problem from igraph 0.6 onwards, where igraph_integer_t has finally been typedef'd to long int.