mercurial/cext/mpatch.c
changeset 36620 186c6df3a373
parent 36361 a2d11d23bb25
child 39991 77492c10a35b
equal deleted inserted replaced
36619:1f8c3fadbb8e 36620:186c6df3a373
   132 {
   132 {
   133 	long orig, start, end, len, outlen = 0, last = 0, pos = 0;
   133 	long orig, start, end, len, outlen = 0, last = 0, pos = 0;
   134 	Py_ssize_t patchlen;
   134 	Py_ssize_t patchlen;
   135 	char *bin;
   135 	char *bin;
   136 
   136 
   137 	if (!PyArg_ParseTuple(args, "ls#", &orig, &bin, &patchlen))
   137 	if (!PyArg_ParseTuple(args, PY23("ls#", "ly#"), &orig, &bin, &patchlen))
   138 		return NULL;
   138 		return NULL;
   139 
   139 
   140 	while (pos >= 0 && pos < patchlen) {
   140 	while (pos >= 0 && pos < patchlen) {
   141 		start = getbe32(bin + pos);
   141 		start = getbe32(bin + pos);
   142 		end = getbe32(bin + pos + 4);
   142 		end = getbe32(bin + pos + 4);