summarylogtreecommitdiffstats
path: root/mirage-python310-fixes.patch
blob: cd7e7006088e3119831b4a03cce8c124a979197b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/mirage/imgfuncs.c b/mirage/imgfuncs.c
index f3e9ff6..bd97e98 100644
--- a/mirage/imgfuncs.c
+++ b/mirage/imgfuncs.c
@@ -15,7 +15,7 @@ PyObject *rotate_right(PyObject *self, PyObject *args)
 {
 	char *a1;
 	char *a2;
-	int length;
+	Py_ssize_t length;
 	int w1, w2;
 	int h1, h2;
 	int rws1, rws2;
@@ -62,7 +62,7 @@ PyObject *rotate_left(PyObject *self, PyObject *args)
 {
 	char *a1;
 	char *a2;
-	int length;
+	Py_ssize_t length;
 	int w1, w2;
 	int h1, h2;
 	int rws1, rws2;
@@ -109,7 +109,7 @@ PyObject *rotate_mirror(PyObject *self, PyObject *args)
 {
 	char *a1;
 	char *a2;
-	int length;
+	Py_ssize_t length;
 	int w1, w2;
 	int h1, h2;
 	int rws1, rws2;
@@ -152,7 +152,7 @@ PyObject *flip_vert(PyObject *self, PyObject *args)
 {
 	char *a1;
 	char *a2;
-	int length;
+	Py_ssize_t length;
 	int w1, w2;
 	int h1, h2;
 	int rws1, rws2;
@@ -195,7 +195,7 @@ PyObject *flip_horiz(PyObject *self, PyObject *args)
 {
 	char *a1;
 	char *a2;
-	int length;
+	Py_ssize_t length;
 	int w1, w2;
 	int h1, h2;
 	int rws1, rws2;