##// END OF EJS Templates
bdiff: avoid pointer arithmetic on void*...
Matt Harbison -
r36699:340e4b71 default
parent child Browse files
Show More
@@ -103,8 +103,8 b' static PyObject *bdiff(PyObject *self, P'
103 }
103 }
104 /* we can almost add: if (li == lmax) lcommon = li; */
104 /* we can almost add: if (li == lmax) lcommon = li; */
105
105
106 an = bdiff_splitlines(ba.buf + lcommon, la - lcommon, &al);
106 an = bdiff_splitlines((char *)ba.buf + lcommon, la - lcommon, &al);
107 bn = bdiff_splitlines(bb.buf + lcommon, lb - lcommon, &bl);
107 bn = bdiff_splitlines((char *)bb.buf + lcommon, lb - lcommon, &bl);
108 if (!al || !bl) {
108 if (!al || !bl) {
109 PyErr_NoMemory();
109 PyErr_NoMemory();
110 goto cleanup;
110 goto cleanup;
General Comments 0
You need to be logged in to leave comments. Login now