equal
deleted
inserted
replaced
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); |