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