--- a/mercurial/cext/bdiff.c Sat Mar 03 19:26:30 2018 -0500
+++ b/mercurial/cext/bdiff.c Sat Mar 03 23:29:40 2018 -0500
@@ -103,8 +103,8 @@
}
/* we can almost add: if (li == lmax) lcommon = li; */
- an = bdiff_splitlines(ba.buf + lcommon, la - lcommon, &al);
- bn = bdiff_splitlines(bb.buf + lcommon, lb - lcommon, &bl);
+ an = bdiff_splitlines((char *)ba.buf + lcommon, la - lcommon, &al);
+ bn = bdiff_splitlines((char *)bb.buf + lcommon, lb - lcommon, &bl);
if (!al || !bl) {
PyErr_NoMemory();
goto cleanup;