Show More
@@ -303,7 +303,7 static PyObject *index_append(indexObjec | |||||
303 | return NULL; |
|
303 | return NULL; | |
304 |
|
304 | |||
305 | if (self->nt) |
|
305 | if (self->nt) | |
306 | nt_insert(self->nt, node, len); |
|
306 | nt_insert(self->nt, node, (int)len); | |
307 |
|
307 | |||
308 | Py_CLEAR(self->headrevs); |
|
308 | Py_CLEAR(self->headrevs); | |
309 | Py_RETURN_NONE; |
|
309 | Py_RETURN_NONE; | |
@@ -578,7 +578,7 static PyObject *reachableroots2(indexOb | |||||
578 | revstates[parents[1] + 1]) & RS_REACHABLE) |
|
578 | revstates[parents[1] + 1]) & RS_REACHABLE) | |
579 | && !(revstates[i + 1] & RS_REACHABLE)) { |
|
579 | && !(revstates[i + 1] & RS_REACHABLE)) { | |
580 | revstates[i + 1] |= RS_REACHABLE; |
|
580 | revstates[i + 1] |= RS_REACHABLE; | |
581 |
val = PyInt_From |
|
581 | val = PyInt_FromSsize_t(i); | |
582 | if (val == NULL) |
|
582 | if (val == NULL) | |
583 | goto bail; |
|
583 | goto bail; | |
584 | r = PyList_Append(reachable, val); |
|
584 | r = PyList_Append(reachable, val); | |
@@ -665,7 +665,7 static PyObject *compute_phases_map_sets | |||||
665 | } |
|
665 | } | |
666 | } |
|
666 | } | |
667 | /* Transform phase list to a python list */ |
|
667 | /* Transform phase list to a python list */ | |
668 |
phasessize = PyInt_From |
|
668 | phasessize = PyInt_FromSsize_t(len); | |
669 | if (phasessize == NULL) |
|
669 | if (phasessize == NULL) | |
670 | goto release; |
|
670 | goto release; | |
671 | for (i = 0; i < len; i++) { |
|
671 | for (i = 0; i < len; i++) { | |
@@ -674,7 +674,7 static PyObject *compute_phases_map_sets | |||||
674 | * is computed as a difference */ |
|
674 | * is computed as a difference */ | |
675 | if (phase != 0) { |
|
675 | if (phase != 0) { | |
676 | phaseset = PyList_GET_ITEM(phasessetlist, phase); |
|
676 | phaseset = PyList_GET_ITEM(phasessetlist, phase); | |
677 |
rev = PyInt_From |
|
677 | rev = PyInt_FromSsize_t(i); | |
678 | if (rev == NULL) |
|
678 | if (rev == NULL) | |
679 | goto release; |
|
679 | goto release; | |
680 | PySet_Add(phaseset, rev); |
|
680 | PySet_Add(phaseset, rev); |
General Comments 0
You need to be logged in to leave comments.
Login now