소스 검색

A missed Py_ssize_t conversion for PY_SSIZE_T_CLEAN

Missed in 8f73bc51e2620820fa1d3aa2c109a3aa3fbe5bc8

This was causing misbehaviour on s390x (multiple test failures).
Fixes: #735
Stefano Rivera 5 년 전
부모
커밋
cb927719f3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      dulwich/_diff_tree.c

+ 1 - 2
dulwich/_diff_tree.c

@@ -198,8 +198,7 @@ static PyObject *py_merge_entries(PyObject *self, PyObject *args)
 {
 	PyObject *tree1, *tree2, **entries1 = NULL, **entries2 = NULL;
 	PyObject *e1, *e2, *pair, *result = NULL;
-	Py_ssize_t n1 = 0, n2 = 0, i1 = 0, i2 = 0;
-	int path_len;
+	Py_ssize_t n1 = 0, n2 = 0, i1 = 0, i2 = 0, path_len;
 	char *path_str;
 	int cmp;