mercurial/cext/bdiff.c
changeset 36681 340e4b711df7
parent 36675 430fdb717549
child 36762 b5bb0f99064d
--- 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;