Show More
@@ -1113,6 +1113,7 b' static PyObject *compute_phases_map_sets' | |||||
1113 | PyObject *phaseroots = NULL; |
|
1113 | PyObject *phaseroots = NULL; | |
1114 | PyObject *phaseset = NULL; |
|
1114 | PyObject *phaseset = NULL; | |
1115 | PyObject *phasessetlist = NULL; |
|
1115 | PyObject *phasessetlist = NULL; | |
|
1116 | PyObject *rev = NULL; | |||
1116 | Py_ssize_t len = index_length(self) - 1; |
|
1117 | Py_ssize_t len = index_length(self) - 1; | |
1117 | Py_ssize_t numphase = 0; |
|
1118 | Py_ssize_t numphase = 0; | |
1118 | Py_ssize_t minrevallphases = 0; |
|
1119 | Py_ssize_t minrevallphases = 0; | |
@@ -1172,7 +1173,9 b' static PyObject *compute_phases_map_sets' | |||||
1172 | * is computed as a difference */ |
|
1173 | * is computed as a difference */ | |
1173 | if (phase != 0) { |
|
1174 | if (phase != 0) { | |
1174 | phaseset = PyList_GET_ITEM(phasessetlist, phase); |
|
1175 | phaseset = PyList_GET_ITEM(phasessetlist, phase); | |
1175 |
|
|
1176 | rev = PyInt_FromLong(i); | |
|
1177 | PySet_Add(phaseset, rev); | |||
|
1178 | Py_XDECREF(rev); | |||
1176 | } |
|
1179 | } | |
1177 | PyList_SET_ITEM(phaseslist, i, PyInt_FromLong(phase)); |
|
1180 | PyList_SET_ITEM(phaseslist, i, PyInt_FromLong(phase)); | |
1178 | } |
|
1181 | } |
General Comments 0
You need to be logged in to leave comments.
Login now