File: 0006-Fix-integer-size-mismatch-in-blob.diff.patch

package info (click to toggle)
python-pygit2 1.18.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,828 kB
  • sloc: ansic: 12,348; python: 11,309; sh: 205; makefile: 26
file content (21 lines) | stat: -rw-r--r-- 885 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sat, 13 Sep 2025 19:28:38 +0200
Subject: Fix integer size mismatch in blob.diff()

---
 src/blob.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/blob.c b/src/blob.c
index 93e7dbe..341774c 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -80,7 +80,7 @@ Blob_diff(Blob *self, PyObject *args, PyObject *kwds)
     int err;
     char *keywords[] = {"blob", "flags", "old_as_path", "new_as_path", "context_lines", "interhunk_lines", NULL};
 
-    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O!IssHH", keywords,
+    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O!IssII", keywords,
                                      &BlobType, &other, &opts.flags,
                                      &old_as_path, &new_as_path,
                                      &opts.context_lines, &opts.interhunk_lines))